Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/shopp-custom-categories-widget/scc-widget.php+402
Declaration of SCC_Widget::widget(array $args, array $options) should be compatible with WP_Widget::widget($args, $instance)
Server metrics [RAM: ▼1.89MB] [CPU: ▼55.04ms] Passed 4 tests
This is a short check of server-side resources used by Shopp Custom Categories Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.64 ▼35.64 |
Dashboard /wp-admin | 2.12 ▼1.22 | 6.42 ▼59.33 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 5.59 ▼40.35 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 5.64 ▼84.85 |
Media Library /wp-admin/upload.php | 2.12 ▼1.10 | 6.13 ▼27.90 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Shopp Custom Categories Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▲0.37 | 1.78 ▲0.05 | 44.80 ▲1.45 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▲1.00 | 99.48 ▼16.96 | 40.86 ▼4.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.03 | 35.49 ▼1.11 | 32.09 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.82 ▼5.28 | 672.57 ▼38.37 | 54.33 ▼2.53 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.01 | 95.89 ▼2.39 | 40.28 ▼5.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/shopp-custom-categories-widget/scc-widget.php+402
Declaration of SCC_Widget::widget(array $args, array $options) should be compatible with WP_Widget::widget($args, $instance)
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shopp-custom-categories-widget/scc-widget.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== shopp-custom-categories-widget ===
) - Screenshots: Screenshot #1 (It's ridiculously easy to use. No need to build a list of category IDs or anything else - just select the categories you wish to include, choose the appropriate formatting style and you're done.) image required
shopp-custom-categories-widget/scc-widget.php 85% from 13 tests
The main file in "Shopp Custom Categories Widget" v. 0.5.5 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: Please rename the main PHP file in this plugin to the plugin slug ("shopp-custom-categories-widget.php" instead of "scc-widget.php")
- Description: The description should be shorter than 140 characters (currently 141 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 plugin473 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 150 | 331 | 401 |
CSS | 1 | 11 | 1 | 51 |
JavaScript | 1 | 5 | 10 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.67 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 14 | 51.85% |
▷ Protected methods | 13 | 48.15% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 16.68KB | 8.08KB | ▼ 51.55% |