Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.37MB] [CPU: ▲23.69ms] 75% from 4 tests
A check of server-side resources used by Place Order Without Payment for WooCommerce
Please take the time to fix the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.37MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.18 ▲5.72 | 60.51 ▲20.77 |
Dashboard /wp-admin | 9.20 ▲5.90 | 68.40 ▲16.02 |
Posts /wp-admin/edit.php | 9.21 ▲5.84 | 78.15 ▲31.87 |
Add New Post /wp-admin/post-new.php | 9.90 ▲4.01 | 126.70 ▲28.19 |
Media Library /wp-admin/upload.php | 9.20 ▲5.97 | 62.50 ▲29.76 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.20 | 56.95 |
Server storage [IO: ▲4.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 218 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
fs_accounts |
widget_recent-posts |
fs_active_plugins |
db_upgraded |
widget_theysaidso_widget |
fs_debug_mode |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Place Order Without Payment for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲68 | 13.92 ▼0.81 | 1.70 ▼0.15 | 28.97 ▼16.41 |
Dashboard /wp-admin | 2,231 ▲54 | 5.62 ▼0.07 | 104.69 ▲5.83 | 40.37 ▼2.86 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.82 ▲0.87 | 52.76 ▲17.32 | 38.94 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.26 ▲0.44 | 639.62 ▲26.18 | 52.17 ▼3.20 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.93 ▲0.78 | 103.37 ▲8.29 | 42.98 ▲1.57 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,098 | 2.28 | 38.59 | 26.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Notice in wp-content/plugins/wc-place-order-without-payment/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- db_upgraded
- fs_accounts
- fs_debug_mode
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wc-place-order-without-payment/templates/admin/footer.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: tab in wp-content/plugins/wc-place-order-without-payment/templates/admin/header.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wc-place-order-without-payment/templates/admin/header.php:11
- > PHP Fatal error
Trait 'WPOWP\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/wc-place-order-without-payment/inc/class-wpowp-front.php on line 15
- > PHP Fatal error
Trait 'WPOWP\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/wc-place-order-without-payment/inc/premium/class-wpowp-premium.php on line 15
- > PHP Notice
Undefined variable: tab in wp-content/plugins/wc-place-order-without-payment/templates/admin/header.php on line 5
- > PHP Fatal error
Trait 'WPOWP\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/wc-place-order-without-payment/inc/class-wpowp-admin.php on line 15
- > PHP Fatal error
Trait 'WPOWP\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/wc-place-order-without-payment/compatibility/class-wpowp-hpos.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wc-place-order-without-payment/templates/admin/header.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wc-place-order-without-payment/templates/admin/header.php:11
- > PHP Notice
Undefined variable: tab in wp-content/plugins/wc-place-order-without-payment/templates/admin/header.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wc-place-order-without-payment/wc-place-order-without-payment.php 85% from 13 tests
"Place Order Without Payment for WooCommerce" version 2.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 176 characters long)
Code Analysis 97% from 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 detected51,393 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 8,174 | 17,584 | 34,376 |
PO File | 13 | 7,450 | 9,057 | 16,530 |
JavaScript | 5 | 42 | 60 | 214 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
CSS | 15 | 0 | 0 | 16 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 82.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,301 | |
▷ Static methods | 200 | 15.37% |
▷ Public methods | 905 | 69.56% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 379 | 29.13% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 159 | |
▷ Global constants | 112 | 70.44% |
▷ Class constants | 47 | 29.56% |
▷ Public constants | 47 | 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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/wc-place-order-without-payment.png | 7.50KB | 4.32KB | ▼ 42.41% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/wc-thanks-redirect.png | 6.32KB | 3.32KB | ▼ 47.43% |