Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.25ms] Passed 4 tests
This is a short check of server-side resources used by Nocks Checkout for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.61 ▼0.90 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.89 ▼5.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.54 ▲0.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.43 ▼9.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.89 ▼0.35 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Nocks Checkout for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.36 ▼1.01 | 1.99 ▲0.10 | 45.96 ▼0.09 |
Dashboard /wp-admin | 2,221 ▲15 | 5.80 ▲0.87 | 98.68 ▼5.26 | 44.50 ▲3.97 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.04 ▲0.02 | 41.25 ▲4.05 | 37.33 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,545 ▲5 | 23.22 ▲0.07 | 652.83 ▼27.19 | 55.79 ▲5.04 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.29 ▲0.07 | 95.67 ▼8.24 | 43.09 ▼3.02 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% 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 50% 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
Please take a closer look at the following
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Nocks_WC_Gateway_Abstract' not found in wp-content/plugins/nocks-checkout-for-woocommerce/includes/nocks/wc/gateway/bitcoin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nocks-checkout-for-woocommerce/includes/woocommerce_functions.php:40
- > PHP Fatal error
Uncaught Error: Class 'Nocks_WC_Gateway_Abstract' not found in wp-content/plugins/nocks-checkout-for-woocommerce/includes/nocks/wc/gateway/litecoin.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/nocks-checkout-for-woocommerce/includes/nocks/wc/gateway/abstract.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/nocks-checkout-for-woocommerce/nocks-payments-for-woocommerce.php:23
- > PHP Fatal error
Uncaught Error: Class 'Nocks_WC_Gateway_Abstract' not found in wp-content/plugins/nocks-checkout-for-woocommerce/includes/nocks/wc/gateway/ethereum.php:2
- > PHP Fatal error
Uncaught Error: Class 'Nocks_WC_Exception' not found in wp-content/plugins/nocks-checkout-for-woocommerce/includes/nocks/wc/exception/incompatibleplatform.php:2
- > PHP Fatal error
Uncaught Error: Class 'Nocks_WC_Exception' not found in wp-content/plugins/nocks-checkout-for-woocommerce/includes/nocks/wc/exception/couldnotconnecttonocks.php:2
- > PHP Fatal error
Uncaught Error: Class 'Nocks_WC_Gateway_Abstract' not found in wp-content/plugins/nocks-checkout-for-woocommerce/includes/nocks/wc/gateway/balance.php:2
- > PHP Fatal error
Uncaught Error: Class 'Nocks_Exception' not found in wp-content/plugins/nocks-checkout-for-woocommerce/includes/nocks-checkout/Exception/IncompatiblePlatform.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: psp, ideal, payment gateway, ethereum, nocks...
nocks-checkout-for-woocommerce/nocks-payments-for-woocommerce.php 85% from 13 tests
This is the main PHP file of "Nocks Checkout for WooCommerce" version 0.19, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.8")
- Main file name: The principal plugin file should be the same as the plugin slug ("nocks-checkout-for-woocommerce.php" instead of "nocks-payments-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,495 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 628 | 956 | 2,252 |
PO File | 2 | 52 | 0 | 108 |
JavaScript | 1 | 14 | 2 | 82 |
CSS | 1 | 2 | 0 | 24 |
Markdown | 1 | 8 | 0 | 15 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 186 | |
▷ Static methods | 25 | 13.44% |
▷ Public methods | 139 | 74.73% |
▷ Protected methods | 46 | 24.73% |
▷ Private methods | 1 | 0.54% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
Constants | 21 | |
▷ Global constants | 2 | 9.52% |
▷ Class constants | 19 | 90.48% |
▷ Public constants | 19 | 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
8 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/balance.png | 3.61KB | 1.99KB | ▼ 44.83% |
assets/images/ideal.png | 7.58KB | 3.53KB | ▼ 53.38% |
assets/images/bitcoin.png | 7.01KB | 2.99KB | ▼ 57.27% |
assets/images/litecoin.png | 4.41KB | 1.88KB | ▼ 57.28% |
assets/images/ethereum.png | 5.36KB | 2.33KB | ▼ 56.43% |