Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.36ms] Passed 4 tests
An overview of server-side resources used by Admin Collapse Subpages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.88 ▼4.12 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.59 ▼2.49 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.48 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.80 ▼2.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.83 ▼0.54 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Admin Collapse Subpages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.03 | 1.60 ▼0.08 | 38.76 ▼6.03 |
Dashboard /wp-admin | 2,203 ▲12 | 4.88 ▼1.01 | 99.80 ▲1.42 | 37.59 ▼5.26 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 42.08 ▲6.91 | 34.63 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.25 ▲5.82 | 604.06 ▼54.83 | 59.09 ▲5.01 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.13 ▼0.09 | 104.30 ▼9.52 | 45.76 ▼4.65 |
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
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 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-collapse-subpages/admin_collapse_subpages.php:38
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 18 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Example Edit Page menu.), #2 (Same menu with a group of subpages minimized.), #3 (Same menu completely minimized.), #4 (Expand/collapse all buttons at the top of the page.)
admin-collapse-subpages/admin_collapse_subpages.php 92% from 13 tests
The principal PHP file in "Admin Collapse Subpages" v. 2.4 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admin-collapse-subpages.php" instead of "admin_collapse_subpages.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin323 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 67 | 61 | 266 |
PHP | 1 | 18 | 25 | 41 |
CSS | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 37.87KB | 14.80KB | ▼ 60.93% |
images/plus.png | 0.25KB | 0.14KB | ▼ 45.17% |
images/minus.png | 0.25KB | 0.14KB | ▼ 45.70% |
screenshot-1.png | 23.64KB | 9.94KB | ▼ 57.94% |
screenshot-4.png | 32.01KB | 12.52KB | ▼ 60.87% |