Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.18ms] Passed 4 tests
A check of server-side resources used by Woo Product Showcase
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.82 ▼4.94 |
Dashboard /wp-admin | 3.32 ▲0.01 | 52.97 ▼1.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.19 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.20 ▼9.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.35 ▲5.34 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Product Showcase
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲42 | 14.54 ▲0.18 | 2.15 ▲0.39 | 43.09 ▼3.77 |
Dashboard /wp-admin | 2,209 ▲32 | 5.51 ▼0.15 | 98.70 ▲3.63 | 47.05 ▲3.44 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.01 ▼0.02 | 35.66 ▼10.09 | 34.84 ▼6.99 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 21.01 ▼2.46 | 712.07 ▲67.85 | 51.53 ▼4.50 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.20 ▲0.01 | 100.87 ▲0.62 | 45.70 ▲4.34 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-product-showcase/aft-woo-product-showcase.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AFTWPL_Widget_Base' not found in wp-content/plugins/woo-product-showcase/includes/widgets/widget-product-grid.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function absint() in wp-content/plugins/woo-product-showcase/includes/blocks/block-product-grid.php:2
- > PHP Fatal error
Uncaught Error: Class 'AFTWPL_Widget_Base' not found in wp-content/plugins/woo-product-showcase/includes/widgets/widget-product-list.php:6
- > PHP Fatal error
Uncaught Error: Class 'AFTWPL_Widget_Base' not found in wp-content/plugins/woo-product-showcase/includes/widgets/widget-product-express-grid.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-showcase/includes/aftwpl-common-functions.php:148
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-product-showcase/includes/widgets/widgets-base.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function absint() in wp-content/plugins/woo-product-showcase/includes/blocks/block-product-express-grid.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-showcase/includes/widgets/widgets-common-functions.php:122
- > PHP Warning
Use of undefined constant AFTWPL_BASE_DIR - assumed 'AFTWPL_BASE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-showcase/includes/widgets/widgets-init.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'AFTWPL_BASE_DIR/includes/widgets/widgets-base.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-product-showcase/includes/widgets/widgets-init.php on line 4
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: widgets, product, shortcodes, woocommerce, woocommerce product grid...
woo-product-showcase/aft-woo-product-showcase.php 85% from 13 tests
"Woo Product Showcase" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-showcase.php" instead of "aft-woo-product-showcase.php")
- Description: The description should be shorter than 140 characters (currently 290 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin10,257 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 29 | 21 | 6,894 |
JavaScript | 4 | 654 | 294 | 1,822 |
PHP | 17 | 391 | 383 | 1,253 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin