Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/netgo-expandablecollapsible-menu/netgo-expandable-collapsible-menu.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; Netgo_Navigation has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼61.91ms] Passed 4 tests
An overview of server-side resources used by Expandable/Collapsible Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 5.19 ▼42.14 |
Dashboard /wp-admin | 2.11 ▼1.20 | 6.86 ▼44.77 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.04 ▼50.24 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.77 ▼110.50 |
Media Library /wp-admin/upload.php | 2.11 ▼1.13 | 5.78 ▼29.80 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_netgo_navigation |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Expandable/Collapsible Menu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.45 ▼0.72 | 9.68 ▲7.88 | 44.01 ▼2.36 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.04 | 87.68 ▼14.72 | 40.00 ▼5.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.03 | 35.70 ▼7.21 | 32.83 ▼4.38 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.16 ▲0.18 | 651.56 ▼32.76 | 69.39 ▲18.61 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▲0.06 | 104.32 ▼6.77 | 43.63 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/netgo-expandablecollapsible-menu/netgo-expandable-collapsible-menu.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; Netgo_Navigation has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_netgo_navigation
- widget_recent-comments
- widget_theysaidso_widget
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 | 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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/netgo-expandablecollapsible-menu/netgo-expandable-collapsible-menu.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (NetGo Expandable/Collapsible Navigation widget configuration.), #2 (It's your menu in sidebar in front end)
netgo-expandablecollapsible-menu/netgo-expandable-collapsible-menu.php 92% from 13 tests
"Expandable/Collapsible Menu" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("netgo-expandablecollapsible-menu.php" instead of "netgo-expandable-collapsible-menu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin190 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 56 | 24 | 108 |
CSS | 1 | 13 | 0 | 41 |
JavaScript | 1 | 22 | 16 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.37KB | 7.53KB | ▼ 67.79% |
screenshot-2.png | 3.78KB | 2.56KB | ▼ 32.33% |