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.02MB] [CPU: ▼6.64ms] Passed 4 tests
Analyzing server-side resources used by BS Banners
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.94 ▼3.57 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.99 ▼6.61 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.32 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.15 ▼17.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.80 ▲1.65 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for BS Banners
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.24 ▼1.40 | 1.98 ▲0.22 | 37.82 ▼1.53 |
Dashboard /wp-admin | 2,208 ▲26 | 5.85 ▲0.95 | 109.22 ▲5.73 | 37.02 ▼4.41 |
Posts /wp-admin/edit.php | 2,091 ▼1 | 2.05 ▲0.05 | 39.16 ▲0.35 | 36.43 ▲4.45 |
Add New Post /wp-admin/post-new.php | 1,516 ▲2 | 17.70 ▲0.09 | 647.59 ▼37.84 | 55.15 ▲2.35 |
Media Library /wp-admin/upload.php | 1,387 ▼1 | 4.20 ▼0.00 | 93.52 ▼9.16 | 41.56 ▼2.86 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 20× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/bs-banners/templates/banner-sample-8.php
- > /wp-content/plugins/bs-banners/templates/banner-sample-20.php
- > /wp-content/plugins/bs-banners/templates/banner-sample-17.php
- > /wp-content/plugins/bs-banners/templates/banner-sample-1.php
- > /wp-content/plugins/bs-banners/templates/banner-sample-4.php
- > /wp-content/plugins/bs-banners/templates/banner-sample-18.php
- > /wp-content/plugins/bs-banners/templates/banner-sample-10.php
- > /wp-content/plugins/bs-banners/templates/banner-sample-12.php
- > /wp-content/plugins/bs-banners/templates/banner-sample-14.php
- > /wp-content/plugins/bs-banners/templates/banner-sample-13.php
- 115× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: title in wp-content/plugins/bs-banners/templates/banner-sample-19.php on line 33
- > PHP Notice
Undefined variable: checkbox in wp-content/plugins/bs-banners/templates/banner-sample-14.php on line 31
- > PHP Notice
Undefined variable: checkbox in wp-content/plugins/bs-banners/templates/banner-sample-15.php on line 31
- > PHP Notice
Undefined variable: title2 in wp-content/plugins/bs-banners/templates/banner-sample-11.php on line 34
- > PHP Notice
Undefined variable: title2 in wp-content/plugins/bs-banners/templates/banner-sample-19.php on line 34
- > PHP Notice
Undefined variable: image_src in wp-content/plugins/bs-banners/templates/banner-sample-8.php on line 26
- > PHP Notice
Undefined variable: url in wp-content/plugins/bs-banners/templates/banner-sample-18.php on line 44
- > PHP Notice
Undefined variable: a_target in wp-content/plugins/bs-banners/templates/banner-sample-9.php on line 43
- > PHP Notice
Undefined variable: title2 in wp-content/plugins/bs-banners/templates/banner-sample-16.php on line 41
- > PHP Notice
Undefined variable: url in wp-content/plugins/bs-banners/templates/banner-sample-4.php on line 30
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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:
- Tags: There are too many tags (18 tag instead of maximum 10)
- Screenshots: Screenshot #1 (Easy to use interface.) image missing
bs-banners/bunnyshortcodes.php 85% from 13 tests
Analyzing the main PHP file in "BS Banners" version 3.6.8
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bs-banners.php" instead of "bunnyshortcodes.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 268 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,496 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 142 | 30 | 2,037 |
PHP | 23 | 103 | 141 | 1,425 |
JavaScript | 1 | 11 | 5 | 34 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 2 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
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.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/icon.png | 3.39KB | 1.98KB | ▼ 41.68% |
images/icon.png | 3.76KB | 1.97KB | ▼ 47.51% |