Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.17ms] Passed 4 tests
This is a short check of server-side resources used by avecdo for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.81 ▲3.28 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.70 ▼9.98 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 43.32 ▼6.03 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.24 ▼8.24 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.88 ▼0.41 |
Server storage [IO: ▲0.31MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
avecdo_version |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for avecdo 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 | 14.35 ▲0.07 | 1.88 ▲0.23 | 43.56 ▲3.63 |
Dashboard /wp-admin | 2,216 ▲39 | 5.58 ▼0.07 | 95.88 ▲9.50 | 41.07 ▼1.80 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 1.98 ▲0.03 | 34.36 ▼5.58 | 31.32 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.09 ▼0.16 | 667.76 ▲2.43 | 50.91 ▼7.21 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.16 ▼0.04 | 95.44 ▼1.96 | 41.86 ▼3.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/avecdo-for-woocommerce/views/version-selector.php:2
- > PHP Fatal error
Uncaught Error: Class 'Avecdo\\SDK\\Constants' not found in wp-content/plugins/avecdo-for-woocommerce/views/index.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/avecdo-for-woocommerce/views/activated.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #3 in avecdo-for-woocommerce/assets to your readme.txt
- Tags: There are too many tags (13 tag instead of maximum 10)
avecdo-for-woocommerce/avecdo.php 92% from 13 tests
The primary PHP file in "avecdo for WooCommerce" version 1.6.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("avecdo-for-woocommerce.php" instead of "avecdo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,505 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 899 | 1,925 | 4,085 |
CSS | 1 | 49 | 0 | 233 |
JSON | 2 | 0 | 0 | 87 |
PO File | 1 | 33 | 0 | 80 |
Markdown | 3 | 6 | 0 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 22.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 236.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 273 | |
▷ Static methods | 39 | 14.29% |
▷ Public methods | 211 | 77.29% |
▷ Protected methods | 22 | 8.06% |
▷ Private methods | 40 | 14.65% |
Functions | 14 | |
▷ Named functions | 11 | 78.57% |
▷ Anonymous functions | 3 | 21.43% |
Constants | 26 | |
▷ Global constants | 3 | 11.54% |
▷ Class constants | 23 | 88.46% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/avecdo-logo.png | 31.29KB | 13.01KB | ▼ 58.43% |
assets/images/activation-flow.png | 26.44KB | 13.29KB | ▼ 49.75% |