Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.79ms] Passed 4 tests
This is a short check of server-side resources used by WooSplit - Google Experiments for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.69 ▼4.22 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.05 ▼10.69 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.83 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.63 ▼6.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.96 ▼0.55 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_woocommerce_google_experiments |
wp_woocommerce_google_experiments_triggers |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
WooSplit - Google Experiments for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.59 ▼0.79 | 1.71 ▼0.12 | 40.39 ▲0.53 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲0.02 | 106.22 ▲5.73 | 42.18 ▲0.02 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.01 ▼0.01 | 40.01 ▲4.29 | 35.18 ▲5.86 |
Add New Post /wp-admin/post-new.php | 1,534 ▲14 | 23.22 ▲0.02 | 662.95 ▼14.52 | 65.90 ▲6.41 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.03 | 103.34 ▲1.80 | 46.44 ▲1.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_woocommerce_google_experiments
- wp_woocommerce_google_experiments_triggers
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/woosplit-google-experiments-for-woocommerce/classes/class-wc-google-experiments.php on line 114
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/woosplit-google-experiments-for-woocommerce/classes/class-wc-google-experiments-table.php on line 75
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/woosplit-google-experiments-for-woocommerce/classes/class-wc-google-experiments-table.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woosplit-google-experiments-for-woocommerce/classes/includes/admin-screen-edit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woosplit-google-experiments-for-woocommerce/classes/includes/admin-screen.php:4
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/woosplit-google-experiments-for-woocommerce/classes/class-wc-google-experiments-table.php on line 84
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woocommerce, ab testing, google experiments, ab split testing, google analytics
woosplit-google-experiments-for-woocommerce/wc-google-experiments.php 92% from 13 tests
The main PHP file in "WooSplit - Google Experiments for WooCommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woosplit-google-experiments-for-woocommerce.php" instead of "wc-google-experiments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin622 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 191 | 155 | 599 |
CSS | 1 | 0 | 0 | 21 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/edit.png | 0.72KB | 0.69KB | ▼ 3.27% |
assets/images/delete.png | 0.74KB | 0.46KB | ▼ 38.19% |