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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.85ms] Passed 4 tests
An overview of server-side resources used by Silencesoft Disable Menu Items
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.55 ▼5.87 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.91 ▼2.08 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.57 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.26 ▼5.81 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.59 ▲3.11 |
Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Silencesoft Disable Menu Items
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.17 ▼1.23 | 1.83 ▲0.07 | 49.55 ▲5.57 |
Dashboard /wp-admin | 2,206 ▲18 | 5.92 ▲0.06 | 102.86 ▼17.70 | 38.00 ▼6.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 38.11 ▲1.60 | 32.67 ▼0.30 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.17 ▲5.50 | 616.00 ▼7.94 | 45.96 ▼7.76 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.23 ▲0.01 | 96.88 ▼3.58 | 39.70 ▼4.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Modifying a menu item) image missing
silencesoft-disable-menu-items/sil-disable-menu-items.php 92% from 13 tests
This is the main PHP file of "Silencesoft Disable Menu Items" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("silencesoft-disable-menu-items.php" instead of "sil-disable-menu-items.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,754 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 63 | 2,084 | 3,716 |
PO File | 2 | 2 | 2 | 38 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 63.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 555.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 271 | |
▷ Static methods | 73 | 26.94% |
▷ Public methods | 226 | 83.39% |
▷ Protected methods | 43 | 15.87% |
▷ Private methods | 2 | 0.74% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 35.45KB | 15.32KB | ▼ 56.80% |