Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.93ms] Passed 4 tests
A check of server-side resources used by adBlock Alerter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.78 ▼2.94 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.99 ▼15.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.73 ▼5.56 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.11 ▼15.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.44 ▼2.16 |
Server storage [IO: ▲0.09MB] [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 |
---|
can_compress_scripts |
adb_status |
widget_recent-posts |
adb_display_image |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
adb_display_status |
adb_display_message |
theysaidso_admin_options |
Browser metrics Passed 4 tests
adBlock Alerter: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.34 ▼0.84 | 2.57 ▲0.45 | 41.66 ▲1.51 |
Dashboard /wp-admin | 2,224 ▲39 | 5.80 ▼0.01 | 104.18 ▼3.34 | 79.82 ▲31.86 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.01 ▼0.03 | 38.26 ▲0.35 | 37.52 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 23.22 ▲5.59 | 742.44 ▲50.07 | 55.36 ▲4.77 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.22 ▼0.03 | 102.73 ▼18.53 | 83.55 ▲33.80 |
Uninstaller [IO: ▲0.00MB] [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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/adblock-alerter/includes/preview.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adblock-alerter/includes/jj.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/adblock-alerter/includes/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/adblock-alerter/adblock_alerter.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Contributors: Plugin contributors not specified
- Tags: There are too many tags (17 tag instead of maximum 10)
adblock-alerter/adblock_alerter.php 85% from 13 tests
Analyzing the main PHP file in "adBlock Alerter" version 0.8.5
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("adblock-alerter.php" instead of "adblock_alerter.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 304 characters long)
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
Everything looks great! No dangerous files found in this plugin313 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 29 | 13 | 188 |
CSS | 2 | 13 | 1 | 77 |
JavaScript | 2 | 11 | 2 | 48 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ 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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/alerter.png | 1.18KB | 1.01KB | ▼ 14.62% |
img/alert.png | 74.97KB | 27.64KB | ▼ 63.13% |