Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.40ms] Passed 4 tests
A check of server-side resources used by Gelato Integration for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.32 ▼5.75 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.91 ▼4.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.29 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.43 ▲3.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.43 ▼1.55 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Gelato Integration for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.37 | 1.69 ▼0.46 | 43.69 ▲0.53 |
Dashboard /wp-admin | 2,195 ▲24 | 5.62 ▲0.01 | 92.96 ▼8.90 | 44.10 ▼0.18 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.03 ▲0.07 | 39.92 ▲1.74 | 35.43 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.26 ▲0.17 | 671.21 ▲25.45 | 61.20 ▲10.64 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▲0.03 | 100.41 ▼0.32 | 40.63 ▼6.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gelato-integration-for-woocommerce/templates/header.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: is_connected in wp-content/plugins/gelato-integration-for-woocommerce/templates/main.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gelato-integration-for-woocommerce/templates/status.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/gelato-integration-for-woocommerce/templates/main.php:60
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/gelato-integration-for-woocommerce/templates/header.php on line 6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gelato-integration-for-woocommerce/templates/header.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Plugin home page), #2 (Gelato shipping page)
gelato-integration-for-woocommerce/gelato-integration-for-woocommerce.php Passed 13 tests
The entry point to "Gelato Integration for WooCommerce" version 1.2.1 is a PHP file that has certain tags in its header comment area
65 characters long description:
This plugin helps to connect your WooCommerce store with Gelato .
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,133 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 191 | 99 | 1,089 |
CSS | 1 | 6 | 0 | 33 |
SVG | 1 | 0 | 1 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 11 | 18.97% |
▷ Public methods | 44 | 75.86% |
▷ Protected methods | 1 | 1.72% |
▷ Private methods | 13 | 22.41% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 26 | |
▷ Global constants | 3 | 11.54% |
▷ Class constants | 23 | 88.46% |
▷ Public constants | 22 | 95.65% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/woocommerce-banner.png | 23.97KB | 9.38KB | ▼ 60.86% |