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 gracefully, with no errors
Server metrics [RAM: ▼0.75MB] [CPU: ▼172.37ms] Passed 4 tests
A check of server-side resources used by Block User Ads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 39.51 ▲6.88 |
Dashboard /wp-admin | 2.90 ▼0.16 | 29.58 ▼18.88 |
Posts /wp-admin/edit.php | 2.90 ▼0.21 | 21.20 ▼28.41 |
Add New Post /wp-admin/post-new.php | 2.90 ▼2.53 | 22.97 ▼627.08 |
Media Library /wp-admin/upload.php | 2.90 ▼0.11 | 21.04 ▼15.12 |
Block User Ads /wp-admin/options-general.php?page=ecpm_bua_settings_page | 2.90 | 23.11 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ecpm_bua_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Block User Ads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,931 ▲359 | 17.72 ▲1.77 | 8.83 ▼0.94 | 52.32 ▼1.43 |
Dashboard /wp-admin | 3,198 ▲268 | 8.23 ▲2.14 | 174.11 ▼1.44 | 110.10 ▼15.02 |
Posts /wp-admin/edit.php | 3,011 ▲272 | 4.36 ▲1.66 | 88.17 ▲19.12 | 89.73 ▼6.41 |
Add New Post /wp-admin/post-new.php | 1,522 ▼84 | 18.22 ▼0.58 | 343.51 ▼70.75 | 102.99 ▼29.26 |
Media Library /wp-admin/upload.php | 1,845 ▲41 | 4.94 ▼0.09 | 119.02 ▼101.37 | 119.50 ▼24.56 |
Block User Ads /wp-admin/options-general.php?page=ecpm_bua_settings_page | 3,321 | 4.19 | 96.72 | 105.90 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/block-user-ads/ecpm-bua-functions.php+5
Use of undefined constant APP_TD - assumed 'APP_TD' (this will throw an Error in a future version of PHP)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ecpm_bua_settings_page
- > Warning in wp-content/plugins/block-user-ads/ecpm-bua-functions.php+5
Use of undefined constant APP_TD - assumed 'APP_TD' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_bua_settings_page
- > Warning in wp-content/plugins/block-user-ads/ecpm-bua-settings.php+337
Use of undefined constant ECPM_ECP - assumed 'ECPM_ECP' (this will throw an Error in a future version of PHP)
SRP 50% 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/block-user-ads/image_sidebar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_part() in wp-content/plugins/block-user-ads/templates/ecpm-bua-blocked-template-4.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function cp_breadcrumb() in wp-content/plugins/block-user-ads/templates/ecpm-bua-blocked-template.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/block-user-ads/ecpm-bua-settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Image settings), #2 (Top notice), #3 (Bottom notice), #4 (Ad settings), #5 (Empty blocked user list), #6 (Blocked user list), #7 (Warning template user sees)
block-user-ads/ecpm-bua.php 85% from 13 tests
"Block User Ads" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("block-user-ads.php" instead of "ecpm-bua.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,232 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 197 | 27 | 957 |
PO File | 1 | 94 | 96 | 213 |
CSS | 1 | 9 | 1 | 48 |
JavaScript | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
33 compressed PNG files occupy 0.33MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cp-author-online.png | 2.37KB | 2.37KB | 0.00% |
images/1-click-bump-renew.png | 2.50KB | 2.61KB | 0.00% |
images/user-ads-limiter.png | 16.25KB | 16.64KB | 0.00% |
images/qr-code-tab-feat.png | 7.46KB | 7.79KB | 0.00% |
images/auto-bump-renew.png | 6.62KB | 6.88KB | 0.00% |