Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▲1.19ms] Passed 4 tests
An overview of server-side resources used by CHP Ads Block Detector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 46.08 ▲5.53 |
Dashboard /wp-admin | 3.57 ▲0.26 | 48.73 ▼1.42 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 50.20 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 86.45 ▼1.25 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.47 ▲1.91 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
chpadb_plugin_settings |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CHP Ads Block Detector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲228 | 14.70 ▲0.45 | 47.02 ▲45.20 | 36.77 ▼6.63 |
Dashboard /wp-admin | 2,242 ▲54 | 5.17 ▲0.27 | 113.98 ▲0.46 | 40.73 ▼3.19 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.28 ▲0.26 | 40.95 ▲4.45 | 35.11 ▲2.14 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 23.51 ▲0.15 | 682.72 ▲36.38 | 36.77 ▼20.87 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.43 ▲0.25 | 97.26 ▼3.83 | 42.47 ▼6.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- chpadb_plugin_settings
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant CHP_ADSB_URL - assumed 'CHP_ADSB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/chp-ads-block-detector/view/settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/chp-ads-block-detector/view/footer_part.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/chp-ads-block-detector/view/header_part.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/chp-ads-block-detector/view/main_scripts.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/chp-ads-block-detector/view/settings.php:5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #10, #7, #8, #9 in chp-ads-block-detector/assets to your readme.txt
- Screenshots: Screenshot #1 (Customizable settings on admin dashboard) image missing
chp-ads-block-detector/chp-adsblocker-detector.php 77% from 13 tests
"CHP Ads Block Detector" version 3.9.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 272 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("chp-ads-block-detector.php" instead of "chp-adsblocker-detector.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected2,899 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 468 | 702 | 2,039 |
CSS | 2 | 4 | 4 | 263 |
JavaScript | 2 | 50 | 98 | 262 |
Markdown | 1 | 57 | 0 | 178 |
PO File | 1 | 44 | 45 | 114 |
JSON | 2 | 0 | 0 | 30 |
SVG | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 19 | 22.62% |
▷ Public methods | 70 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 16.67% |
Functions | 11 | |
▷ Named functions | 5 | 45.45% |
▷ Anonymous functions | 6 | 54.55% |
Constants | 1 | |
▷ Global constants | 1 | 100.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.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon_high.png | 30.94KB | 12.73KB | ▼ 58.87% |
assets/img/banner.png | 8.46KB | 6.59KB | ▼ 22.10% |
assets/img/icon.png | 15.30KB | 12.57KB | ▼ 17.87% |