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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.12ms] Passed 4 tests
An overview of server-side resources used by ECT Home Page Products
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 47.45 ▲1.36 |
Dashboard /wp-admin | 3.37 ▲0.06 | 53.53 ▼6.02 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.20 ▲0.14 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.64 ▼11.94 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.08 ▲1.51 |
ECT Homepage Product /wp-admin/admin.php?page=ect_homepage_prod | 3.27 | 34.35 |
Add New /wp-admin/admin.php?page=ect_homepage_prod_add | 3.26 | 34.41 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 19 new options
New WordPress options |
---|
ect_prod_sett_animated_speed |
ect_prod_sett_land_visi |
widget_recent-comments |
ect_prod_sett_visible_prod |
ect_prod_sett_autoPlaySpeed |
ect_prod_sett_land_chg |
ect_prod_sett_pauseonhover |
ect_prod_sett_tab_visi |
can_compress_scripts |
ect_prod_sett_autoplay |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for ECT Home Page Products
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲126 | 13.51 ▼0.77 | 7.30 ▲5.58 | 39.42 ▼7.54 |
Dashboard /wp-admin | 2,212 ▲32 | 5.69 ▲0.10 | 88.26 ▼10.83 | 64.98 ▲22.05 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.29 ▲0.33 | 47.28 ▲11.23 | 35.84 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,695 ▲158 | 22.30 ▲4.26 | 604.31 ▼61.07 | 28.87 ▼35.68 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.26 ▼0.11 | 100.95 ▼3.61 | 83.06 ▲34.53 |
ECT Homepage Product /wp-admin/admin.php?page=ect_homepage_prod | 868 | 1.85 | 37.64 | 30.33 |
Add New /wp-admin/admin.php?page=ect_homepage_prod_add | 995 | 1.81 | 26.85 | 33.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 19 options in the database
- ect_prod_sett_tab_chg
- ect_prod_sett_pauseonhover
- theysaidso_admin_options
- can_compress_scripts
- ect_prod_sett_enable_break
- ect_prod_sett_autoplay
- db_upgraded
- ect_prod_sett_animated_speed
- widget_recent-comments
- ect_prod_sett_land_visi
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ect-homepage-products/add_hprod.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/ect-homepage-products/edit_hprod.php:34
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/ect-homepage-products/ect_list.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ect-homepage-products/index.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
ect-homepage-products/index.php 92% from 13 tests
The main PHP file in "ECT Home Page Products" ver. 1.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ect-homepage-products.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin713 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 45 | 28 | 647 |
CSS | 1 | 5 | 1 | 46 |
JavaScript | 1 | 9 | 0 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
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 | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/add-to-cart-btn.png | 4.28KB | 2.23KB | ▼ 47.98% |
img/tick.png | 0.30KB | 0.19KB | ▼ 35.83% |
img/ect28x28.png | 0.63KB | 0.58KB | ▼ 7.59% |
img/cross.png | 0.39KB | 0.27KB | ▼ 32.01% |
img/button-next.png | 0.58KB | 0.49KB | ▼ 15.45% |