Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.70ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Invoice Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.41 ▼2.37 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.73 ▼14.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.69 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.65 ▼28.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.84 ▲0.50 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Invoice Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.36 ▼0.26 | 1.66 ▼0.02 | 43.69 ▼0.83 |
Dashboard /wp-admin | 2,210 ▲33 | 5.63 ▲0.01 | 93.74 ▲3.69 | 42.01 ▲5.31 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.00 ▼0.02 | 33.92 ▼3.91 | 33.48 ▼4.58 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.27 ▲0.31 | 686.27 ▲83.52 | 66.42 ▲14.59 |
Media Library /wp-admin/upload.php | 1,415 ▲21 | 4.25 ▲0.03 | 103.87 ▲7.89 | 48.64 ▲7.11 |
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 detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/wc-invoice-gateway/includes/blocks/class-wc-invoice-payments-blocks.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: checkout, sales, payments, e-commerce, cart...
wc-invoice-gateway/wc-invoice-gateway.php 85% from 13 tests
Analyzing the main PHP file in "WooCommerce Invoice Gateway" version 2.0.1
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 211 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("6.0" instead of "6.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin409 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 123 | 273 | 408 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 35 | |
▷ Static methods | 12 | 34.29% |
▷ Public methods | 23 | 65.71% |
▷ Protected methods | 3 | 8.57% |
▷ Private methods | 9 | 25.71% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin