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.01MB] [CPU: ▼7.10ms] Passed 4 tests
A check of server-side resources used by Pro-AdBlock
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 31.79 ▼7.51 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.83 ▼1.77 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.82 ▼3.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.97 ▼14.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.09 ▼2.88 |
Pro-AdBlock /wp-admin/options-general.php?page=pro-adblock-options | 3.19 | 33.03 |
Server storage [IO: ▲0.80MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Pro-AdBlock: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲183 | 13.43 ▼1.13 | 10.05 ▲8.52 | 40.99 ▼0.67 |
Dashboard /wp-admin | 2,199 ▲19 | 5.57 ▼0.04 | 89.06 ▲1.38 | 41.60 ▼5.19 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▲0.02 | 38.92 ▲0.50 | 37.62 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.37 ▲0.17 | 616.89 ▼36.71 | 53.82 ▲3.87 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.12 ▼0.08 | 102.76 ▲0.15 | 43.81 ▼2.93 |
Pro-AdBlock /wp-admin/options-general.php?page=pro-adblock-options | 894 | 2.01 | 23.95 | 31.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pro-adblock-options
- > Warning in wp-content/plugins/pro-adblock/pro-adblock.php+290
array_key_exists() expects parameter 2 to be array, bool given
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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/pro-adblock/pro-adblock.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Overlay on frontpage), #2 (Plugin options page)
pro-adblock/pro-adblock.php Passed 13 tests
The primary PHP file in "Pro-AdBlock" version 2.0.0 is used by WordPress to initiate all plugin functionality
58 characters long description:
Displays an overlay to users when no adblocker is enabled.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin371 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 101 | 149 |
PO File | 1 | 22 | 22 | 122 |
CSS | 1 | 11 | 9 | 82 |
JavaScript | 1 | 2 | 14 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.76MB with 0.43MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 60.37KB | 34.19KB | ▼ 43.36% |
screenshot-1.png | 713.07KB | 218.73KB | ▼ 69.32% |