Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/st-category-wp/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; st_Category has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼55.70ms] Passed 4 tests
A check of server-side resources used by ST Categories Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 7.05 ▼32.19 |
Dashboard /wp-admin | 2.17 ▼1.18 | 7.84 ▼51.88 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 7.58 ▼44.43 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 7.40 ▼94.28 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 8.74 ▼26.21 |
ST Categories WP /wp-admin/options-general.php?page=st_categories_wp | 2.17 | 7.08 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_st_category |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
ST Categories Widget: 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,814 ▲68 | 13.18 ▼1.57 | 4.35 ▲2.59 | 39.27 ▼4.47 |
Dashboard /wp-admin | 2,214 ▲29 | 4.87 ▼0.97 | 109.80 ▲7.84 | 39.12 ▼3.17 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.20 | 39.64 ▲0.52 | 35.37 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▼16 | 22.99 ▲4.65 | 662.72 ▲19.04 | 64.23 ▲8.83 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.19 ▲0.01 | 93.68 ▼12.33 | 42.48 ▼2.40 |
ST Categories WP /wp-admin/options-general.php?page=st_categories_wp | 919 | 2.08 | 24.87 | 55.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/st-category-wp/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; st_Category has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_st_category
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=st_categories_wp
- > Deprecated in wp-content/plugins/st-category-wp/widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; st_Category has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=st_categories_wp
- > Deprecated in wp-content/plugins/st-category-wp/widget.php+172
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=st_categories_wp
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in st_Category is deprecated since version 4.3.0! Use __construct() 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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/st-category-wp/st-categories-wp.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/st-category-wp/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: widget, categories, st categories, list categories
st-category-wp/st-categories-wp.php 92% from 13 tests
"ST Categories Widget" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("st-category-wp.php" instead of "st-categories-wp.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
Good job! No executable or dangerous file extensions detected9,935 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,669 | 1,346 | 6,757 |
CSS | 6 | 19 | 42 | 1,923 |
PHP | 2 | 28 | 24 | 521 |
SVG | 1 | 0 | 0 | 520 |
HTML | 1 | 14 | 4 | 158 |
PO File | 1 | 19 | 19 | 56 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
7 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doc/assets/css/img/warning.png | 0.59KB | 0.50KB | ▼ 14.99% |
doc/assets/images/st-cat-01.png | 86.19KB | 35.60KB | ▼ 58.69% |
images/arrow_red_right.png | 0.17KB | 0.11KB | ▼ 37.57% |
doc/assets/css/img/info.png | 0.67KB | 0.70KB | 0.00% |
images/categories-icon.png | 5.85KB | 2.87KB | ▼ 51.01% |