Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.90ms] Passed 4 tests
Server-side resources used by Product Category
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.51 ▼2.94 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.50 ▲3.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.13 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.00 ▼12.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.00 ▼1.44 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Category
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.27 ▼1.16 | 1.79 ▼0.15 | 79.26 ▲34.79 |
Dashboard /wp-admin | 2,219 ▲31 | 4.86 ▼0.08 | 110.89 ▲11.42 | 42.51 ▼1.57 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.05 ▲0.04 | 35.91 ▼3.36 | 36.50 ▲2.77 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.49 ▲0.31 | 698.83 ▲9.41 | 55.42 ▼3.33 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.21 ▼0.06 | 99.20 ▼6.95 | 43.13 ▲0.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/product-category/product-category.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-category/includes/shortcode/shortcode.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-category/includes/widget/woo-product-category-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #7, #8 in product-category/assets to your readme.txt
product-category/product-category.php Passed 13 tests
"Product Category" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
111 characters long description:
Now Customize your Product Category page as you want using Widget and Shortcode with Built-in Default 5 Styles.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,598 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 99 | 242 | 1,013 |
CSS | 3 | 14 | 46 | 533 |
PO File | 1 | 4 | 4 | 36 |
SVG | 3 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 3 | 18.75% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
24 PNG files occupy 0.86MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/pcw.png | 3.82KB | 1.22KB | ▼ 68.12% |
includes/shortcode/images/logo-2.png | 6.31KB | 2.72KB | ▼ 56.87% |
includes/shortcode/images/page14.png | 235.22KB | 80.54KB | ▼ 65.76% |
includes/shortcode/images/page5.png | 39.42KB | 20.09KB | ▼ 49.04% |
includes/shortcode/images/copy.png | 3.67KB | 2.87KB | ▼ 21.69% |