Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.63ms] Passed 4 tests
This is a short check of server-side resources used by Admin Cleanup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.79 ▼3.97 |
Dashboard /wp-admin | 3.35 ▲0.04 | 55.65 ▼4.45 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 53.57 ▲1.99 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.62 ▼18.42 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.32 ▲0.32 |
Admin Cleanup /wp-admin/options-general.php?page=admin-cleanup | 3.23 | 33.42 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Admin Cleanup: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.28 ▲0.00 | 1.76 ▲0.04 | 41.71 ▼2.09 |
Dashboard /wp-admin | 2,202 ▲24 | 5.60 ▼0.11 | 89.80 ▼22.98 | 37.24 ▼9.48 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.02 | 32.59 ▼6.03 | 34.91 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,542 ▲13 | 18.17 ▼4.74 | 622.45 ▼55.93 | 58.53 ▼7.77 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.05 | 95.71 ▼17.40 | 41.46 ▼6.59 |
Admin Cleanup /wp-admin/options-general.php?page=admin-cleanup | 937 | 1.68 | 26.29 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: admin, admin bar, admin menu, hide menu, cleanup
admin-cleanup/admin-cleanup.php Passed 13 tests
"Admin Cleanup" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
Clean up the admin sidebar menu
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin220 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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin