Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.80ms] Passed 4 tests
Analyzing server-side resources used by Ad Blocking Alert
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.59 ▲0.08 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.61 ▼3.07 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.21 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.66 ▼3.01 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.73 ▼1.18 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options |
---|
adb_display_status |
adb_status |
theysaidso_admin_options |
widget_recent-comments |
adb_display_message |
widget_theysaidso_widget |
adb_display_image |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ad Blocking Alert
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,136 ▲401 | 13.33 ▼1.34 | 5.60 ▲3.83 | 43.48 ▲4.14 |
Dashboard /wp-admin | 2,221 ▲30 | 5.83 ▲0.91 | 97.41 ▼5.14 | 74.40 ▲33.47 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.01 ▼0.02 | 39.35 ▼0.32 | 34.63 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,680 ▲146 | 22.12 ▼0.86 | 779.66 ▲76.02 | 65.32 ▲6.66 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.19 ▼0.06 | 99.31 ▼8.37 | 47.95 ▼4.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ad-blocking-alert/includes/preview.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ad-blocking-alert/ad-blocking-alert.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ad-blocking-alert/includes/jj.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/ad-blocking-alert/includes/settings.php:2
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
ad-blocking-alert/ad-blocking-alert.php 92% from 13 tests
"Ad Blocking Alert" version 1.0.3'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: The description should be shorter than 140 characters (currently 238 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin328 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 30 | 13 | 199 |
CSS | 2 | 14 | 1 | 81 |
JavaScript | 2 | 11 | 2 | 48 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/alert.png | 74.97KB | 27.64KB | ▼ 63.13% |
img/alerter.png | 15.25KB | 1.26KB | ▼ 91.75% |