Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼1.71MB] [CPU: ▼51.33ms] Passed 4 tests
This is a short check of server-side resources used by BrokersWeb Ads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.18 | 8.90 ▼33.96 |
Dashboard /wp-admin | 2.30 ▼1.01 | 10.25 ▼43.22 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 11.69 ▼44.26 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 15.05 ▼83.87 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 10.02 ▼26.91 |
BrokersWeb Ads /wp-admin/admin.php?page=brokerswebads | 2.30 | 10.37 |
Banner Showcase /wp-admin/admin.php?page=bwads_banners | 2.30 | 11.61 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BrokersWeb Ads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.26 ▲0.02 | 1.68 ▼0.15 | 41.51 ▼0.96 |
Dashboard /wp-admin | 2,217 ▲40 | 5.60 ▲0.03 | 88.47 ▼2.57 | 90.01 ▲48.32 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.09 ▲0.06 | 36.40 ▼0.61 | 35.00 ▼6.51 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.10 ▼0.18 | 689.39 ▲15.22 | 162.70 ▲109.15 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.27 ▲0.11 | 99.61 ▼1.15 | 61.94 ▲19.61 |
BrokersWeb Ads /wp-admin/admin.php?page=brokerswebads | 1,677 | 2.19 | 43.03 | 79.95 |
Banner Showcase /wp-admin/admin.php?page=bwads_banners | 1,028 | 1.74 | 27.88 | 51.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Banners::register() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bwads_banners
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Banners::register() should not be called statically
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bwads_banners
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bwads_banners
- > Notice in wp-content/plugins/brokerswebads/bwads.php+17
Undefined variable: wp_version
- > GET request to /wp-admin/admin.php?page=brokerswebads
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
SRP 50% 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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brokerswebads/bwadsbannerswidget.php:186
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brokerswebads/bwads.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/brokerswebads/bwads_banners.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bwads_banners
- > Network (severe)
http://../wp-content/plugins/brokerswebads/images/menu_icon.ico - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The BrokersWeb Listings.), #2 (Documented Control Panel.)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== brokerswebads ===
)
brokerswebads/bwads.php 85% from 13 tests
The primary PHP file in "BrokersWeb Ads" version v2.2.1... is used by WordPress to initiate all plugin functionality
The following require your attention:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "v2.2.1...")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brokerswebads.php" instead of "bwads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,190 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 38 | 822 |
JavaScript | 1 | 11 | 5 | 274 |
CSS | 2 | 0 | 2 | 94 |
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.16 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.22MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bwAdsUI_11.png | 1.12KB | 0.23KB | ▼ 79.62% |
screenshot-1.png | 32.86KB | 31.83KB | ▼ 3.14% |
images/bw-logo.png | 10.90KB | 5.09KB | ▼ 53.32% |
images/bullets_03.png | 1.86KB | 1.11KB | ▼ 40.36% |
images/bullets_06.png | 2.06KB | 1.24KB | ▼ 39.74% |