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
This plugin's installer ran successfully
Server metrics [RAM: ▼1.97MB] [CPU: ▼54.57ms] Passed 4 tests
This is a short check of server-side resources used by Nocks Nifty for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.03 ▼36.27 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.31 ▼53.89 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.36 ▼44.14 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.86 ▼83.99 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.25 ▼31.57 |
Server storage [IO: ▲8.08MB] [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: 629 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nocks Nifty for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.93 ▼0.45 | 8.48 ▲6.81 | 42.56 ▲1.17 |
Dashboard /wp-admin | 2,207 ▲22 | 5.88 ▲1.01 | 111.39 ▼5.73 | 38.04 ▼4.15 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 38.21 ▼3.63 | 35.03 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,518 ▼4 | 17.63 ▼5.74 | 678.91 ▲65.55 | 60.48 ▼3.82 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.28 ▲0.05 | 97.50 ▲2.00 | 41.36 ▼0.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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
Good news, no errors were detected
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
Almost there! Just fix the following items
- 158× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Arcanedev\\QrCode\\Modes\\Base\\EncodeMode' not found in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/arcanedev/qr-code/src/Modes/NumericMode.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/guzzlehttp/ringphp/tests/Client/StreamHandlerTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'React\\Promise\\PromiseInterface' not found in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/react/promise/src/ExtendedPromiseInterface.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Stream\\StreamInterface' not found in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/guzzlehttp/streams/tests/StreamDecoratorTraitTest.php:8
- > PHP Warning
require(wp-content/plugins/nocks-nifty-for-woocommerce/vendor/guzzlehttp/ringphp/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/guzzlehttp/ringphp/tests/bootstrap.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/guzzlehttp/streams/tests/FnStreamTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Post\\PostBodyInterface' not found in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/guzzlehttp/guzzle/src/Post/PostBody.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Event\\AbstractEvent' not found in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/guzzlehttp/guzzle/src/Event/AbstractRequestEvent.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/guzzlehttp/streams/tests/NoSeekStreamTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nocks-nifty-for-woocommerce/vendor/guzzlehttp/ringphp/tests/Client/CurlMultiHandlerTest.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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: psp, gulden, bitcoin, payment gateway, woocommerce
nocks-nifty-for-woocommerce/nocks-nifty-woocommerce.php 92% from 13 tests
This is the main PHP file of "Nocks Nifty for WooCommerce" version 0.0.20, 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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nocks-nifty-for-woocommerce.php" instead of "nocks-nifty-woocommerce.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 plugin29,512 lines of code in 325 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 237 | 3,764 | 6,429 | 18,558 |
Markdown | 10 | 658 | 0 | 2,557 |
reStructuredText | 19 | 1,222 | 1,570 | 2,029 |
CSS | 4 | 3 | 12 | 1,856 |
Sass | 13 | 26 | 24 | 1,352 |
LESS | 13 | 26 | 33 | 1,343 |
SVG | 2 | 0 | 0 | 579 |
JSON | 7 | 1 | 0 | 488 |
make | 5 | 78 | 10 | 333 |
JavaScript | 2 | 25 | 60 | 196 |
XML | 5 | 2 | 0 | 89 |
YAML | 5 | 21 | 2 | 88 |
Python | 2 | 10 | 0 | 41 |
HTML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 30 | |
Traits | 15 | |
Classes | 184 | |
▷ Abstract classes | 5 | 2.72% |
▷ Concrete classes | 179 | 97.28% |
▷ Final classes | 3 | 1.68% |
Methods | 1,715 | |
▷ Static methods | 91 | 5.31% |
▷ Public methods | 1,495 | 87.17% |
▷ Protected methods | 58 | 3.38% |
▷ Private methods | 162 | 9.45% |
Functions | 265 | |
▷ Named functions | 31 | 11.70% |
▷ Anonymous functions | 234 | 88.30% |
Constants | 22 | |
▷ Global constants | 1 | 4.55% |
▷ Class constants | 21 | 95.45% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
46 PNG files occupy 0.28MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/arcanedev/qr-code/assets/image/qrv5.png | 0.16KB | 0.15KB | ▼ 5.00% |
vendor/arcanedev/qr-code/assets/image/qrv22.png | 0.24KB | 0.22KB | ▼ 6.64% |
vendor/arcanedev/qr-code/assets/image/qrv16.png | 0.23KB | 0.21KB | ▼ 6.49% |
vendor/arcanedev/qr-code/assets/image/d.png | 0.83KB | 0.08KB | ▼ 90.21% |
assets/img/btc.png | 13.91KB | 8.68KB | ▼ 37.59% |