Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.82ms] Passed 4 tests
This is a short check of server-side resources used by JS Banner Rotate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.20 ▲1.36 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.83 ▲2.89 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.97 ▼2.21 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.43 ▼11.99 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.66 ▲1.58 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
js-banner-rotate-core |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
JS Banner Rotate: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲137 | 13.53 ▼0.84 | 9.97 ▲8.24 | 42.11 ▼1.27 |
Dashboard /wp-admin | 2,224 ▲21 | 4.87 ▼0.97 | 106.93 ▲0.43 | 42.30 ▼1.68 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.01 | 37.95 ▼4.52 | 34.01 ▼5.55 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 23.27 ▼0.06 | 652.71 ▼58.73 | 52.56 ▼13.80 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.24 ▼0.03 | 99.48 ▼11.92 | 44.42 ▼9.08 |
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 were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- js-banner-rotate-core
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 21
- > PHP Notice
Undefined variable: image in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 35
- > PHP Notice
Undefined variable: height in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 24
- > PHP Notice
Undefined variable: titlevis in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 25
- > PHP Notice
Undefined variable: width in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 36
- > PHP Notice
Undefined variable: width in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 35
- > PHP Notice
Undefined variable: height in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 23
- > PHP Notice
Undefined variable: height in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 23
- > PHP Notice
Undefined variable: height in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 34
- > PHP Notice
Undefined variable: width in wp-content/plugins/js-banner-rotate/lib/template.jsbrotate_shortcode.php on line 24
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Shortcode entered in the *HTML* view edit post screen.), #2 (The actual output of the banner on your blog.)
js-banner-rotate/jsbrotate.php 92% from 13 tests
The main file in "JS Banner Rotate" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("js-banner-rotate.php" instead of "jsbrotate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin323 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 46 | 231 | 181 |
CSS | 1 | 16 | 0 | 91 |
JavaScript | 1 | 13 | 18 | 51 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 4 | 66.67% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-top-links.png | 0.86KB | 1.20KB | 0.00% |
images/banner-links.png | 0.13KB | 0.09KB | ▼ 27.07% |