Benchmarks
Plugin footprint Passed 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.05MB] [CPU: ▼287.57ms] Passed 4 tests
A check 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.59 ▲0.07 | 55.06 ▲3.24 |
Dashboard /wp-admin | 3.50 ▲0.08 | 35.28 ▲2.07 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 38.86 ▲3.27 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 100.20 ▼1,149.31 |
Media Library /wp-admin/upload.php | 3.38 ▲0.07 | 24.81 ▼6.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 | 3.35 | 27.50 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Menu Tree Page View
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,964 ▲210 | 16.46 ▲0.45 | 6.12 ▼0.85 | 2.28 ▼0.26 |
Dashboard /wp-admin | 3,072 ▲211 | 6.57 ▲0.37 | 123.23 ▼10.51 | 183.61 ▲18.88 |
Posts /wp-admin/edit.php | 2,874 ▲189 | 3.45 ▲0.08 | 71.02 ▲6.57 | 179.08 ▲37.78 |
Add New Post /wp-admin/post-new.php | 1,766 ▼7 | 16.04 ▼5.09 | 452.55 ▲5.65 | 175.12 ▲19.27 |
Media Library /wp-admin/upload.php | 1,875 ▲177 | 5.93 ▲0.47 | 128.10 ▼12.95 | 213.98 ▲18.02 |
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 | 1,146 | 3.31 | 60.83 | 129.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/admin-menu-tree-page-view/index.php:29
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: view, hierarchy, page, menu, cms...
admin-menu-tree-page-view/index.php 92% from 13 tests
This is the main PHP file of "Admin Menu Tree Page View" version 2.7.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same 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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,669 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 175 | 183 | 655 |
CSS | 1 | 69 | 10 | 482 |
PHP | 1 | 118 | 136 | 317 |
PO File | 6 | 69 | 124 | 215 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
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% |