Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.07ms] Passed 4 tests
Analyzing server-side resources used by Better Stop Adblock
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 50.61 ▲8.86 |
Dashboard /wp-admin | 3.37 ▲0.03 | 58.56 ▲0.37 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.34 ▼3.99 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.58 ▼12.24 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.39 ▲3.58 |
B. Stop AdBlock /wp-admin/admin.php?page=bsa_settings_page | 3.31 | 38.36 |
Info /wp-admin/admin.php?page=Info | 3.26 | 31.84 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Better Stop Adblock
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.71 ▲0.25 | 2.11 ▲0.46 | 48.94 ▲4.77 |
Dashboard /wp-admin | 2,208 ▲28 | 5.57 ▼0.08 | 101.19 ▲13.49 | 83.81 ▲44.88 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.00 ▼0.02 | 36.23 ▼4.64 | 35.05 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.00 ▼0.60 | 686.89 ▼3.35 | 63.22 ▲11.20 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.22 ▲0.03 | 96.83 ▼2.33 | 77.10 ▲33.61 |
B. Stop AdBlock /wp-admin/admin.php?page=bsa_settings_page | 1,765 | 8.41 | 185.94 | 79.96 |
Info /wp-admin/admin.php?page=Info | 1,064 | 4.09 | 99.19 | 31.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/better-stop-adblock/bsa-info.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/better-stop-adblock/better-stop-adblock.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/better-stop-adblock/bsa-head.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/better-stop-adblock/bsa-var.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Info
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Info
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #2, #3, #4 in better-stop-adblock/assets to your readme.txt
better-stop-adblock/better-stop-adblock.php 92% from 13 tests
"Better Stop Adblock" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 154 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 plugin3,074 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 594 | 594 | 2,007 |
JavaScript | 3 | 1,428 | 27 | 828 |
PHP | 4 | 1 | 9 | 229 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/text.png | 2.20KB | 1.76KB | ▼ 20.21% |
img/mini.png | 0.99KB | 0.99KB | 0.49% |
bsacolor/hs.png | 2.62KB | 7.54KB | 0.00% |
bsacolor/hv.png | 2.80KB | 7.32KB | 0.00% |
img/logo.png | 41.47KB | 42.91KB | 0.00% |