Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.10ms] Passed 4 tests
Server-side resources used by Clip Plugin for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.74 ▼5.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.88 ▼1.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.17 ▲0.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.05 ▼17.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.15 ▼3.53 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Clip Plugin for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲28 | 14.10 ▼0.22 | 2.02 ▼0.40 | 45.66 ▲2.45 |
Dashboard /wp-admin | 2,198 ▲27 | 5.62 ▲0.03 | 96.22 ▼6.08 | 43.19 ▼1.71 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.07 | 39.78 ▲0.77 | 35.19 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.35 ▲0.21 | 637.44 ▼0.81 | 49.84 ▼4.73 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.26 ▲0.07 | 99.36 ▲0.37 | 47.65 ▲4.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/clip-for-woocommerce/templates/page-onboarding.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/clip-for-woocommerce/templates/page-onboarding.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function Ecomerciar\\Clip\\Gateway\\apply_filters() in wp-content/plugins/clip-for-woocommerce/src/gateway/settings.php:24
- > PHP Notice
Undefined variable: args in wp-content/plugins/clip-for-woocommerce/templates/page-onboarding.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/clip-for-woocommerce/templates/page-onboarding.php on line 8
- > PHP Notice
Undefined variable: args in wp-content/plugins/clip-for-woocommerce/templates/page-onboarding.php on line 8
- > PHP Fatal error
Trait 'Ecomerciar\\Clip\\Helper\\TemplatesTrait' not found in wp-content/plugins/clip-for-woocommerce/src/helper/class-helper.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in clip-for-woocommerce/assets to your readme.txt
clip-for-woocommerce/clip-woo.php 69% from 13 tests
Analyzing the main PHP file in "Clip Plugin for WooCommerce" version 1.0.14
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("clip-for-woocommerce.php" instead of "clip-woo.php")
- Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "4")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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,203 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 309 | 722 | 1,665 |
SVG | 7 | 0 | 0 | 401 |
PO File | 1 | 39 | 31 | 70 |
JavaScript | 1 | 12 | 5 | 67 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 9.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 9 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 46 | 62.16% |
▷ Public methods | 68 | 91.89% |
▷ Protected methods | 2 | 2.70% |
▷ Private methods | 4 | 5.41% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/loading-spinner.png | 1.18KB | 1.35KB | 0.00% |