Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.14ms] Passed 4 tests
Analyzing server-side resources used by Clover Payments for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.88 ▼1.58 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.91 ▲0.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.31 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 95.53 ▼6.90 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.25 ▲4.61 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Clover Payments for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.28 ▼1.12 | 4.51 ▲2.52 | 44.29 ▼0.77 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼0.07 | 111.67 ▼6.56 | 43.18 ▲0.45 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.04 | 36.61 ▲0.68 | 39.21 ▲5.28 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 18.38 ▼4.91 | 585.64 ▼102.62 | 55.60 ▲4.76 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▲0.00 | 94.85 ▼5.72 | 41.35 ▼2.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- woocommerce_clover_payments_settings
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
clover-payments-for-woocommerce/woo-clover-payments.php 69% from 13 tests
The principal PHP file in "Clover Payments for WooCommerce" v. 1.0.10 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("clover-payments-for-woocommerce.php" instead of "woo-clover-payments.php")
- Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "7.4 or Higher")
- Requires at least: Required version does not match the one declared in readme.txt ("5.9.3" instead of "5.9")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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
Everything looks great! No dangerous files found in this plugin1,587 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 185 | 398 | 1,039 |
JavaScript | 3 | 34 | 28 | 325 |
PO File | 1 | 64 | 1 | 141 |
CSS | 1 | 19 | 4 | 82 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 6 | 13.95% |
▷ Public methods | 33 | 76.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 23.26% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
No PNG files were detected