Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.25ms] Passed 4 tests
Analyzing server-side resources used by DH - Anti AdBlocker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 40.27 ▲0.77 |
Dashboard /wp-admin | 3.46 ▲0.15 | 45.96 ▼3.45 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.22 ▲3.09 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.54 ▼10.31 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.82 ▼0.00 |
DH – Anti AdBlocker /wp-admin/options-general.php?page=dh-anti-adblocker | 3.63 | 33.29 |
Server storage [IO: ▲5.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 205 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
dhadb_admin_notice |
dhadb_token |
theysaidso_admin_options |
widget_recent-posts |
dhadb_update_notice |
dh_antiadblocker |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DH - Anti AdBlocker
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 13.99 ▼0.24 | 9.25 ▲7.43 | 36.52 ▼8.09 |
Dashboard /wp-admin | 2,212 ▲24 | 5.86 ▼0.02 | 101.96 ▼18.92 | 38.36 ▼7.87 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.01 | 40.12 ▲0.45 | 35.77 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.37 ▲5.13 | 667.39 ▲33.57 | 59.75 ▲5.18 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.04 | 97.79 ▼10.80 | 42.12 ▲0.30 |
DH – Anti AdBlocker /wp-admin/options-general.php?page=dh-anti-adblocker | 2,817 | 6.57 | 132.42 | 126.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/dh-anti-adblocker/includes/class-dh-anti-adblocker-deactivator.php+72
Undefined variable: remove_dir_trans
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- dh_antiadblocker
- dhadb_admin_notice
- dhadb_update_notice
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=dh-anti-adblocker
- > Notice in wp-content/plugins/dh-anti-adblocker/admin/partials/dh-anti-adblocker-admin-display.php+338
Undefined index: dhadb_content
- > GET request to /wp-admin/options-general.php?page=dh-anti-adblocker
- > Notice in wp-includes/formatting.php+1104
Array to string conversion
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/dh-anti-adblocker/admin/partials/dh-anti-adblocker-admin-display.php
- > /wp-content/plugins/dh-anti-adblocker/public/partials/dh-anti-adblocker-public-display.php
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 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (If adblocker active then showing notice.), #2 (All settings on WP Dashboard.)
dh-anti-adblocker/dh-anti-adblocker.php 92% from 13 tests
This is the main PHP file of "DH - Anti AdBlocker" version 46..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "46...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin56,053 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 102 | 3,196 | 5,042 | 27,426 |
JavaScript | 54 | 2,075 | 1,033 | 24,037 |
SVG | 3 | 0 | 12 | 2,880 |
PHP | 12 | 281 | 735 | 1,439 |
PO File | 2 | 107 | 167 | 271 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 5.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 28 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 20.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.21MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/dh.png | 0.85KB | 0.81KB | ▼ 5.06% |
admin/img/icon.png | 2.02KB | 1.60KB | ▼ 20.67% |
screenshot-2.png | 126.75KB | 36.75KB | ▼ 71.01% |
screenshot-1.png | 56.34KB | 16.57KB | ▼ 70.59% |
admin/css/themes/default/assets/images/flags.png | 27.46KB | 29.21KB | 0.00% |