Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼4.05ms] Passed 4 tests
Analyzing server-side resources used by Unblock Adblocker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 40.77 ▲0.54 |
Dashboard /wp-admin | 3.71 ▲0.40 | 51.85 ▼0.07 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 48.78 ▼0.52 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 84.01 ▼16.13 |
Media Library /wp-admin/upload.php | 3.57 ▲0.33 | 38.92 ▲2.23 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
unblockadblocker-review-notify |
db_upgraded |
unblockadblocker-install-date |
unblockadblocker-options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Unblock Adblocker: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.18 ▼1.20 | 1.93 ▲0.06 | 45.03 ▲1.92 |
Dashboard /wp-admin | 2,219 ▲28 | 4.83 ▼1.07 | 113.66 ▲10.01 | 42.68 ▼2.49 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.01 ▲0.01 | 34.90 ▲0.04 | 32.94 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,538 ▲9 | 23.15 ▲4.96 | 683.24 ▲62.82 | 59.58 ▼5.20 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.20 ▼0.00 | 104.16 ▲7.59 | 45.01 ▼0.09 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- unblockadblocker-install-date
- theysaidso_admin_options
- unblockadblocker-review-notify
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/unblock-adblocker/public/partials/unblockadblocker-public-display.php
- > /wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-section-style.php
- > /wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-section-options.php
- > /wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-section-content.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-field-radio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function network_admin_url() in wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-page-settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-field-checkbox.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-field-editor.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-field-text.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-alpha-color-picker.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-color-picker.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-field-select.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/unblock-adblocker/admin/partials/unblockadblocker-admin-page-sidebar.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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 to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== unblock-adblocker ===
)
unblock-adblocker/unblock-adblocker.php 92% from 13 tests
"Unblock Adblocker" version 1.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,425 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 676 | 944 | 1,917 |
JavaScript | 4 | 92 | 59 | 369 |
CSS | 3 | 28 | 3 | 139 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 20.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 5 | 5.95% |
▷ Public methods | 73 | 86.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 13.10% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
There are no PNG files in this plugin