Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.09ms] Passed 4 tests
A check of server-side resources used by AMW Clear Upload Folder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.06 ▼3.67 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.85 ▲2.54 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.39 ▲6.28 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.47 ▼5.78 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.01 ▲2.54 |
AMW Clear Upload Folder /wp-admin/tools.php?page=amw-clear-upload-folder | 3.34 | 104.79 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_amv_data_table_result |
wp_amv_deleted_files |
wp_amv_ignored_folders |
wp_amv_settings |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by AMW Clear Upload Folder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.19 ▼1.49 | 1.95 ▲0.10 | 39.17 ▼12.53 |
Dashboard /wp-admin | 2,210 ▲19 | 6.01 ▲1.12 | 95.37 ▼11.35 | 38.10 ▼4.54 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.02 | 38.54 ▲0.32 | 36.45 ▲3.38 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.35 ▲0.15 | 665.11 ▲6.62 | 57.14 ▲2.76 |
Media Library /wp-admin/upload.php | 1,395 ▲16 | 4.26 ▲0.01 | 98.44 ▼9.86 | 43.10 ▼4.10 |
AMW Clear Upload Folder /wp-admin/tools.php?page=amw-clear-upload-folder | 926 | 1.98 | 32.74 | 57.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 4 tables
- wp_amv_settings
- wp_amv_ignored_folders
- wp_amv_deleted_files
- wp_amv_data_table_result
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(AWM_CUF_DIR/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/amw-clear-upload-folder/loaderFunc.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/amw-clear-upload-folder/uninstall.php:4
- > PHP Fatal error
Uncaught Error: Class 'AMVCUFClass' not found in wp-content/plugins/amw-clear-upload-folder/views/folders-admin.php:3
- > PHP Warning
Use of undefined constant AWM_CUF_DIR - assumed 'AWM_CUF_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/amw-clear-upload-folder/loaderFunc.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amw-clear-upload-folder/includes/functions.php:6
- > PHP Fatal error
Uncaught Error: Class 'AMVCUFSettingsClass' not found in wp-content/plugins/amw-clear-upload-folder/views/settings-admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'AMVCUFClass' not found in wp-content/plugins/amw-clear-upload-folder/views/files-admin.php:3
- > PHP Fatal error
require_once(): Failed opening required 'AWM_CUF_DIR/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/amw-clear-upload-folder/loaderFunc.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'AMVCUFClass' not found in wp-content/plugins/amw-clear-upload-folder/views/main-admin.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
amw-clear-upload-folder/amw-clear-upload-folder.php Passed 13 tests
The main file in "AMW Clear Upload Folder" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
Removes unused files from the 'uploads' folder
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin8,687 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 990 | 31 | 6,340 |
JavaScript | 4 | 544 | 329 | 1,506 |
PHP | 13 | 127 | 122 | 841 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 4.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin