Display the total size space usage as well:
- wp-content total size
- wp-content/plugins size
- wp-content/themes size
- wp-content/uploads size
- database size
- Total available memory / used memory
- PHP Version and OS (32/64 bit)
Simply download, install and activate. Then a widget with information will be added to your dashboard and memory information in the footer of every admin page.
- Aktiver pluginnen gjennom ‘Plugins’-menyen i WordPress
How is diskspace calculated?
The plugin cycles through the provided path to calculate the total space used for that particular path. The wp-content size includes the plugins, themes and upload folders, but also other folders under wp-content.
Bidragsytere og utviklere
“My Simple Space” er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen.Bidragsytere
- Adds wp-content if outside ABSPATH, which was added in 1.2.7, to the Entire Site calculation, as WP_CONTENT_DIR is configurable.
- Updated code to use WP_CONTENT_DIR and WP_PLUGIN_DIR, as these can be changed by the site owner, to get correct paths.
- Reverted \FilesystemIterator::FOLLOW_SYMLINKS back to \FilesystemIterator::CURRENT_AS_FILEINFO on line 227, as it does not fix anything.
- Stripped code to ensure trailing slash on path for mss_dir_size function as its unnecessary
- Reverted \FilesystemIterator::CURRENT_AS_FILEINFO back to \FilesystemIterator::FOLLOW_SYMLINKS on line 227 to attempt correcting a bug from 1.2.5.
- Added code to ensure trailing slash on path for mss_dir_size function
- Adjusted \FilesystemIterator::FOLLOW_SYMLINKS on line 227 to \FilesystemIterator::CURRENT_AS_FILEINFO, as it returned the same folder size for wp-content, themes & uploads.
- Stripping the 2 path variable lines on 220 & 221 (reverting change made in 1.2.4)
- Fixed issue in the mss_dir_size function which caused a fatal exception when it tries to access a file path, instead of a folder path. Thanks @idempotent for pointing this out.
- Added \FilesystemIterator::FOLLOW_SYMLINKS to the inner RecursiveDirectoryIterator inside the mss_dir_size, which hopefully speeds up the calculation.
- Slight code cleanup.
- Ensure widget is only ever run on the dashboard page.
- Cast both $memory_usage and $memory_limit to int, before rounding on line 127 in my-simple-space.php to fix debugging error.
- Removed a few extra strange characters.
- Cleared transient creation bug. Transient is now set prior to returning value. Transient was not being created.
- Replaced custom size calculation function with WP’s builtin size_format function. Reduces code size.
- Replaced folder calculation function, should increase speed
- Corrected badly named functions
- Applied speed boost, using transients earlier in output
- Corrected what broke the plugin in 1.1.5
- Updated to only run in the admin area, to increase frontend performance
- Updated to show compatible with WP 4.6
- Transitioned prior cache effort to using transients instead. Prior caching efforts did not work. Items are now cached for 60 minutes.
- Corrected error caused by adding in cache setup.
- Folder sizes are now cached for 60 minutes, to reduce overhead.
- Added check to exclude folders not readable. Hides errors.
- Made plugin more translatable.
- Updated to show works with 4.4.1
- Updated admin footer to use in_admin_footer() instead of rebuilding footer with admin_footer_text().
- Fix for sites that return the home_path as /. Gets the absolute path using ABSPATH instead.
- 1.0.5 update killed data for sites not using WordPress in a subfolder. This is now fixed.
- Corrected double folder for sites using WordPress in a subfolder.
- Found issue with closing columns on the widget. This was an HTML code issue, not closing the div tag, which caused other widgets below to be absorbed into the same widget box.
- General housekeeping to clean up plugin files, including plugin information.
- Moved some of items around and added in wp-admin and wp-includes.
- Removed hard coded paths and replaced with dynamic paths.
- Rewrote database calculation to make use of $wpdb, rather than mysql calls, which broke in some instances.
- Initial Release