Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.27ms] Passed 4 tests
Server-side resources used by Morning for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.08 ▼1.89 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.51 ▼3.68 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.53 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.28 ▼2.99 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.70 ▲1.39 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Morning for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.45 ▼0.14 | 1.86 ▼0.01 | 39.08 ▼1.29 |
Dashboard /wp-admin | 2,190 ▲10 | 5.48 ▼0.19 | 81.39 ▼7.21 | 40.28 ▼0.73 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.02 | 34.67 ▼2.27 | 33.07 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.06 ▼0.65 | 639.84 ▼56.91 | 54.94 ▲6.30 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.29 ▲0.04 | 96.79 ▲0.55 | 43.09 ▼4.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wc-gateway-greeninvoice/templates/admin/order-metabox.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: order_meta_labels in wp-content/plugins/wc-gateway-greeninvoice/templates/admin/order-metabox.php on line 15
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wc-gateway-greeninvoice/templates/admin/order-metabox.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-gateway-greeninvoice/templates/frontend/installments-form.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wc-gateway-greeninvoice/templates/admin/settings-page.php:14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in wc-gateway-greeninvoice/assets to your readme.txt
wc-gateway-greeninvoice/wc-gateway-greeninvoice.php Passed 13 tests
The main PHP file in "Morning for WooCommerce" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
Accept payments from clients, with automated invoice production.
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
Good job! No executable or dangerous file extensions detected1,560 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 574 | 1,689 | 1,520 |
SVG | 1 | 0 | 1 | 36 |
CSS | 2 | 0 | 4 | 2 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 6 | 20.69% |
Methods | 97 | |
▷ Static methods | 16 | 16.49% |
▷ Public methods | 70 | 72.16% |
▷ Protected methods | 13 | 13.40% |
▷ Private methods | 14 | 14.43% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 83 | |
▷ Global constants | 8 | 9.64% |
▷ Class constants | 75 | 90.36% |
▷ Public constants | 75 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dropdown-arrow.png | 0.27KB | 0.25KB | ▼ 7.50% |