Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.00MB] [CPU: ▼0.78ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Plugin for PHC GO
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.50 ▲1.04 | 48.98 ▲12.19 |
Dashboard /wp-admin | 4.34 ▲1.00 | 47.97 ▼13.68 |
Posts /wp-admin/edit.php | 4.39 ▲1.04 | 52.95 ▲8.55 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.98 | 87.02 ▼7.33 |
Media Library /wp-admin/upload.php | 4.20 ▲0.98 | 41.95 ▲9.35 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
WooCommerce Plugin for PHC GO: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.21 | 1.74 ▲0.21 | 43.66 ▲1.86 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.08 | 83.64 ▼1.89 | 40.27 ▼4.79 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.04 | 33.51 ▼3.50 | 35.81 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 18.40 ▲0.29 | 606.66 ▲3.86 | 72.37 ▼1.26 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.04 | 105.57 ▲4.68 | 47.74 ▲7.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/drivefx-woocommerce/drivefx-woocommerce-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/drivefx-woocommerce/settings/import-products.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/drivefx-woocommerce/settings/backend.php:3
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (List of All Products), #2 (Initialize plugin and login), #3 (Configurations of plugin)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
drivefx-woocommerce/drivefx-woocommerce.php Passed 13 tests
The principal PHP file in "WooCommerce Plugin for PHC GO" v. 4.9.3 is loaded by WordPress automatically on each request
76 characters long description:
Easy integration between Woocommerce WordPress and your PHC GO installation.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,841 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 1,031 | 1,226 | 5,813 |
JavaScript | 2 | 40 | 46 | 519 |
CSS | 2 | 11 | 37 | 508 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 159)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 66.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 453.00 |
Average method complexity | 10.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 159.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 1 | 0.93% |
▷ Public methods | 106 | 98.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.85% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
9 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/right.png | 0.30KB | 0.24KB | ▼ 21.10% |
images/plus.png | 0.27KB | 0.16KB | ▼ 41.24% |
images/woo.png | 0.89KB | 0.62KB | ▼ 30.46% |
images/update.png | 0.29KB | 0.26KB | ▼ 12.08% |
screenshot-2.png | 61.01KB | 36.37KB | ▼ 40.39% |