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
Install script ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼9.10ms] Passed 4 tests
An overview of server-side resources used by Cost Centre Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.80 ▼3.68 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.44 ▼3.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.30 ▲4.19 |
Add New Post /wp-admin/post-new.php | 5.15 ▼0.74 | 63.62 ▼33.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 45.88 ▲7.62 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Cost Centre Gateway for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.30 ▼0.05 | 1.73 ▼0.19 | 44.22 ▼0.05 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▼0.14 | 86.13 ▼2.78 | 37.88 ▼3.96 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.02 | 34.48 ▼1.67 | 33.12 ▼4.64 |
Add New Post /wp-admin/post-new.php | 45 ▼1,484 | 0.44 ▼17.08 | 0.09 ▼640.79 | 9.57 ▼45.63 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.26 ▲0.04 | 95.68 ▼0.86 | 65.21 ▲25.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 7 options in the database
- widget_recent-posts
- widget_recent-comments
- recovery_mode_email_last_sent
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cost-centre-gateway-for-woocommerce/includes/class-woo-costcentre-gateway-admin.php:29
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/cost-centre-gateway-for-woocommerce/includes/class-wc-gateway-costcentre.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== cost-centre-gateway-for-woocommerce ===
)
cost-centre-gateway-for-woocommerce/woo-costcentre-gateway.php 77% from 13 tests
The principal PHP file in "Cost Centre Gateway for WooCommerce" v. 1.1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cost-centre-gateway-for-woocommerce.php" instead of "woo-costcentre-gateway.php")
- Requires at least: Required version does not match the one declared in readme.txt ("3.7" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin414 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 127 | 625 | 413 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 3 | 8.57% |
▷ Public methods | 31 | 88.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin