Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼301.41ms] Passed 4 tests
Server-side resources used by Admin Cleanup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 51.55 ▼4.89 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.27 ▼1.47 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 38.69 ▲0.82 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 94.84 ▼1,200.09 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 24.12 ▲1.04 |
Admin Cleanup /wp-admin/options-general.php?page=admin-cleanup | 3.30 | 22.93 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Cleanup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,771 ▲27 | 16.26 ▲0.27 | 6.17 ▲0.19 | 2.35 ▲0.13 |
Dashboard /wp-admin | 2,900 ▲42 | 6.14 ▼0.08 | 117.92 ▼14.74 | 157.32 ▼9.22 |
Posts /wp-admin/edit.php | 2,696 ▲5 | 3.24 ▼0.00 | 62.76 ▼2.80 | 140.54 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,674 ▲13 | 18.37 ▲2.70 | 419.47 ▼0.52 | 156.68 ▲3.90 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.49 ▼0.04 | 140.74 ▼5.27 | 182.14 ▼0.82 |
Admin Cleanup /wp-admin/options-general.php?page=admin-cleanup | 1,177 | 2.53 | 53.32 | 115.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-cleanup/admin-cleanup.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: admin bar, admin, hide menu, admin menu, cleanup
admin-cleanup/admin-cleanup.php Passed 13 tests
The entry point to "Admin Cleanup" version 1.0.2 is a PHP file that has certain tags in its header comment area
31 characters long description:
Clean up the admin sidebar menu
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected220 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 13 | 209 |
Markdown | 1 | 9 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin