Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.75ms] Passed 4 tests
This is a short check of server-side resources used by Hot Products
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.09 ▲1.46 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.56 ▼15.23 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.58 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.91 ▲3.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.60 ▲3.68 |
Hot Products /wp-admin/options-general.php?page=hotproducts | 3.20 | 34.34 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Hot Products
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.25 ▼1.13 | 1.81 ▼0.14 | 42.45 ▼1.14 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲0.04 | 99.67 ▼15.13 | 40.98 ▼3.61 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.06 | 38.67 ▲1.17 | 34.24 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.07 ▼0.13 | 636.28 ▼11.26 | 61.83 ▲1.90 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.04 | 107.73 ▼11.62 | 46.14 ▼2.41 |
Hot Products /wp-admin/options-general.php?page=hotproducts | 834 | 2.03 | 24.72 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% 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)
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hotproducts
- > Notice in wp-content/plugins/hot-products/hotproducts.php+169
Undefined variable: message_placement
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hot-products/hotproducts.php:45
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=hotproducts
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=hotproducts 177 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=hotproducts
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=hotproducts 181 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: woocommerce
hot-products/hotproducts.php 85% from 13 tests
Analyzing the main PHP file in "Hot Products" version 1.0
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("hot-products.php" instead of "hotproducts.php")
- Git Repository: An alternative Git repository was detected
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 plugin157 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 62 | 157 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flame.png | 14.32KB | 9.04KB | ▼ 36.86% |