Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.10ms] Passed 4 tests
Analyzing server-side resources used by AdsMatcher Anti Adblock
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.65 ▼7.26 |
Dashboard /wp-admin | 3.39 ▲0.08 | 53.73 ▼1.14 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 53.05 ▲1.51 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.00 ▼7.74 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.69 ▼0.27 |
AdsMatcher /wp-admin/options-general.php?page=adsmatcher_plugin | 3.31 | 217.30 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
adsmatcher_title |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
adsmatcher_display_clostebtn |
db_upgraded |
adsmatcher_uniqueid |
adsmatcher_adblocker_dissimulation |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by AdsMatcher Anti Adblock
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲79 | 14.48 ▼0.15 | 2.71 ▲0.68 | 38.36 ▼5.30 |
Dashboard /wp-admin | 2,210 ▲1 | 5.83 ▲0.95 | 106.65 ▲0.20 | 40.27 ▼3.01 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.04 ▲0.05 | 39.25 ▲1.65 | 32.62 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,541 ▲21 | 23.19 ▲0.07 | 605.13 ▼45.45 | 56.53 ▲3.44 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.27 ▲0.08 | 100.84 ▲0.78 | 42.27 ▼0.74 |
AdsMatcher /wp-admin/options-general.php?page=adsmatcher_plugin | 901 | 2.04 | 26.62 | 33.59 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 11 options in the database
- theysaidso_admin_options
- adsmatcher_uniqueid
- widget_recent-comments
- widget_recent-posts
- adsmatcher_message
- can_compress_scripts
- adsmatcher_title
- adsmatcher_adblocker_dissimulation
- db_upgraded
- widget_theysaidso_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/adsmatcher-anti-adblock/views/message.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function network_site_url() in wp-content/plugins/adsmatcher-anti-adblock/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/adsmatcher-anti-adblock/views/notices.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
adsmatcher-anti-adblock/adsmatcher.php 85% from 13 tests
The primary PHP file in "AdsMatcher Anti Adblock" version 1.1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("adsmatcher-anti-adblock.php" instead of "adsmatcher.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected843 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 136 | 262 | 651 |
PO File | 3 | 48 | 61 | 160 |
JSON | 1 | 0 | 0 | 18 |
CSS | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 5 | 13.51% |
▷ Public methods | 36 | 97.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.70% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected