Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/showcase-products/showcase-products.php+401
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.53ms] Passed 4 tests
Server-side resources used by Showcase Products
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.78 ▼40.70 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.92 ▼43.22 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.15 ▼43.83 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.28 ▼94.37 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.02 ▼30.08 |
Add New /wp-admin/post-new.php?post_type=sp_products | 2.05 | 5.32 |
Products Categories /wp-admin/edit-tags.php?taxonomy=products_categories&post_type=sp_products | 2.05 | 7.35 |
Products /wp-admin/edit.php?post_type=sp_products | 2.05 | 6.81 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_sp_categories |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Showcase Products: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 14.76 ▲0.57 | 1.82 ▼0.02 | 86.69 ▲42.80 |
Dashboard /wp-admin | 2,233 ▲42 | 5.82 ▲0.95 | 101.61 ▼7.31 | 82.89 ▲41.25 |
Posts /wp-admin/edit.php | 2,119 ▲33 | 1.98 ▲0.00 | 37.02 ▼1.73 | 32.69 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 17.48 ▼0.77 | 760.96 ▲123.87 | 54.74 ▼5.41 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.17 ▼0.03 | 95.37 ▼2.97 | 70.08 ▲28.41 |
Add New /wp-admin/post-new.php?post_type=sp_products | 2,627 | 7.72 | 188.10 | 130.68 |
Products Categories /wp-admin/edit-tags.php?taxonomy=products_categories&post_type=sp_products | 1,292 | 2.14 | 26.85 | 32.90 |
Products /wp-admin/edit.php?post_type=sp_products | 1,134 | 1.94 | 31.47 | 31.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/showcase-products/showcase-products.php+401
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_sp_categories
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sp_products
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/showcase-products/showcase-products.php+401
Function create_function() is deprecated
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/showcase-products/showcase-products.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/showcase-products/templates/single.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/showcase-products/templates/archive.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #0 in showcase-products/assets to your readme.txt
- Screenshots: Please add an image for screenshot #1 (Screenshot of front end display - screenshot-1.png)
showcase-products/showcase-products.php Passed 13 tests
The principal PHP file in "Showcase Products" v. 1.0 is loaded by WordPress automatically on each request
22 characters long description:
Showcase your products
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
Success! There were no dangerous files found in this plugin2,517 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 496 | 46 | 2,069 |
PHP | 3 | 80 | 78 | 397 |
PO File | 1 | 17 | 59 | 51 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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 | 3 | |
▷ Global constants | 3 | 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
4 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sp_icon1.png | 0.14KB | 0.16KB | 0.00% |
(invalid) images/sp_icon.png | 32.21KB | 0.00KB | ▼ 100.00% |
images/arrow.png | 0.17KB | 0.11KB | ▼ 35.84% |
(invalid) images/sp_icon2.png | 32.21KB | 0.00KB | ▼ 100.00% |