Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/bw-slideshow/bw-slideshow-widget.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; bw_slideshow_Widget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼49.41ms] Passed 4 tests
An overview of server-side resources used by BW Slideshow
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.47 ▼33.64 |
Dashboard /wp-admin | 2.29 ▼1.01 | 14.05 ▼38.38 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.99 ▼36.49 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.54 ▼89.13 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 11.86 ▼25.40 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_bw-slideshow-widget |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BW Slideshow
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.50 ▲0.14 | 3.62 ▲1.74 | 43.41 ▼3.36 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.03 | 107.44 ▼9.48 | 44.22 ▲0.08 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.00 | 40.52 ▲3.25 | 34.98 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.30 ▲5.48 | 673.81 ▼33.63 | 59.67 ▼5.01 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.01 | 95.70 ▼9.21 | 41.05 ▼7.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in bw_slideshow_Widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_bw-slideshow-widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bw-slideshow/themes/theme2.php
- > /wp-content/plugins/bw-slideshow/themes/theme1.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bw-slideshow/bw-slideshow-widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 29 tag instead of maximum 10
bw-slideshow/bw-slideshow-widget.php 92% from 13 tests
Analyzing the main PHP file in "BW Slideshow" version 1.0
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("bw-slideshow.php" instead of "bw-slideshow-widget.php")
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
There were no executable files found in this plugin2,103 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 268 | 100 | 1,412 |
PHP | 3 | 80 | 46 | 638 |
CSS | 1 | 10 | 11 | 53 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 94.00 |
▷ Minimum class complexity | 94.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 16.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 1 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sprite-default.png | 2.60KB | 1.33KB | ▼ 49.02% |