Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.75ms] Passed 4 tests
An overview of server-side resources used by Admin Menu Tree Page View
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.62 ▼1.93 |
Dashboard /wp-admin | 3.42 ▲0.12 | 50.99 ▲0.93 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.72 ▼1.22 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 85.57 ▼4.75 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.95 ▲0.89 |
PagesSearchNo pages foundSample PageEdit|ViewAdd new pageAfter|InsidePost ID: 2DraftPrivacy PolicyEdit|ViewAdd new pageAfter|InsidePost ID: 3 /wp-admin/edit.php?post_type=page&page=admin-menu-tree-page-tree | 3.32 | 34.68 |
AMTPV /wp-admin/options-general.php?page=amtpv | 3.32 | 28.52 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Admin Menu Tree Page View
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 13.11 ▼1.16 | 1.58 ▲0.01 | 44.06 ▲3.63 |
Dashboard /wp-admin | 2,321 ▲144 | 5.71 ▲0.19 | 108.58 ▲18.04 | 45.47 ▲7.38 |
Posts /wp-admin/edit.php | 2,230 ▲133 | 2.52 ▲0.50 | 40.03 ▲4.73 | 35.72 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,634 ▲97 | 23.39 ▲0.24 | 662.23 ▼2.96 | 36.66 ▼19.81 |
Media Library /wp-admin/upload.php | 1,528 ▲125 | 4.44 ▲0.23 | 109.80 ▲1.02 | 47.30 ▲0.26 |
PagesSearchNo pages foundSample PageEdit|ViewAdd new pageAfter|InsidePost ID: 2DraftPrivacy PolicyEdit|ViewAdd new pageAfter|InsidePost ID: 3 /wp-admin/edit.php?post_type=page&page=admin-menu-tree-page-tree | 910 | 2.14 | 31.01 | 34.90 |
AMTPV /wp-admin/options-general.php?page=amtpv | 993 | 2.15 | 32.05 | 44.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-menu-tree-page-view/includes/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/admin-menu-tree-page-view/index.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: cms, tree, page tree, admin, menu...
admin-menu-tree-page-view/index.php 92% from 13 tests
Analyzing the main PHP file in "Admin Menu Tree Page View" version 2.8.5
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-menu-tree-page-view.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,974 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 175 | 189 | 649 |
PHP | 2 | 198 | 192 | 550 |
CSS | 1 | 83 | 10 | 529 |
PO File | 6 | 69 | 124 | 215 |
XML | 1 | 7 | 4 | 29 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 2.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 | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-icons_cccccc_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/page-small-minus.png | 0.23KB | 0.17KB | ▼ 26.81% |
css/page-small-plus.png | 0.24KB | 0.17KB | ▼ 27.69% |
css/page-small.png | 0.22KB | 0.16KB | ▼ 25.78% |
css/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |