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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▼1.69ms] Passed 4 tests
A check of server-side resources used by Plugin Load Filter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 42.53 ▲1.86 |
Dashboard /wp-admin | 3.54 ▲0.19 | 48.49 ▼9.94 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 46.96 ▼1.07 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 579.04 ▲487.00 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 39.13 ▲2.38 |
Server storage [IO: ▲0.26MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Plugin Load Filter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.28 ▼0.32 | 1.69 ▼0.05 | 38.57 ▼4.70 |
Dashboard /wp-admin | 2,204 ▲27 | 5.52 ▼0.15 | 81.93 ▼5.70 | 37.75 ▼9.12 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.96 ▼0.02 | 34.94 ▼2.89 | 33.74 ▲2.18 |
Add New Post /wp-admin/post-new.php | 6,302 ▲4,774 | 20.84 ▼2.18 | 886.06 ▲228.60 | 68.56 ▲9.17 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.15 ▼0.06 | 108.10 ▲4.15 | 44.17 ▼0.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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: These screenshots have no corresponding images in /assets: #1 (Filter Registration setting.), #2 (Page Filter Activation setting.), #3 (Setting of each post)
plugin-load-filter/plugin-load-filter.php 92% from 13 tests
Analyzing the main PHP file in "Plugin Load Filter" version 4.0.17
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin2,291 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 164 | 296 | 2,128 |
PO File | 1 | 55 | 58 | 163 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 180)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
Average class complexity | 301.00 |
▷ Minimum class complexity | 244.00 |
▷ Maximum class complexity | 358.00 |
Average method complexity | 10.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 180.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 31 | 50.82% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 57.12KB | 49.17KB | ▼ 13.90% |
screenshot-1.png | 28.10KB | 22.29KB | ▼ 20.70% |
screenshot-2.png | 21.04KB | 16.40KB | ▼ 22.07% |