Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼12.33ms] Passed 4 tests
Server-side resources used by Z4Money para WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 27.55 ▼15.00 |
Dashboard /wp-admin | 3.37 ▲0.07 | 40.59 ▼12.54 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 40.53 ▼7.41 |
Add New Post /wp-admin/post-new.php | 5.62 ▼0.27 | 77.50 ▼14.38 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.87 ▲5.19 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/wc-z4money/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Z4Money para WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,548 ▼238 | 13.32 ▼0.97 | 0.76 ▼1.47 | 19.35 ▼24.11 |
Dashboard /wp-admin | 2,289 ▲83 | 4.84 ▼0.11 | 115.71 ▲9.40 | 40.40 ▼2.87 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 2.18 ▲0.15 | 37.75 ▲0.59 | 34.11 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,577 ▲44 | 23.27 ▲0.11 | 672.68 ▲59.42 | 62.83 ▲6.76 |
Media Library /wp-admin/upload.php | 1,471 ▲71 | 4.32 ▲0.08 | 101.36 ▼5.52 | 52.55 ▲7.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Z4Money\\SDK\\Requests\\AbstractRequest' not found in wp-content/plugins/wc-z4money/vendor/Z4Money/SDK/Requests/Estabelecimento/AddWebhookRequest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Z4Money\\SDK\\Requests\\InterfaceRequest' not found in wp-content/plugins/wc-z4money/vendor/Z4Money/SDK/Requests/AbstractRequest.php:13
- > PHP Fatal error
Uncaught Error: Class 'Z4Money\\SDK\\Requests\\AbstractRequest' not found in wp-content/plugins/wc-z4money/vendor/Z4Money/SDK/Requests/Pagamento/PagamentoRequest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Z4Money\\SDK\\Requests\\AbstractRequest' not found in wp-content/plugins/wc-z4money/vendor/Z4Money/SDK/Requests/Pagamento/StatusRequest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/wc-z4money/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Class 'Z4Money\\SDK\\Requests\\AbstractRequest' not found in wp-content/plugins/wc-z4money/vendor/Z4Money/SDK/Requests/Pagamento/RefundRequest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Z4Money\\SDK\\Requests\\AbstractRequest' not found in wp-content/plugins/wc-z4money/vendor/Z4Money/SDK/Requests/Estabelecimento/GetWebhookRequest.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #4 is required in wc-z4money/assets to your readme.txt
wc-z4money/wc-z4money.php Passed 13 tests
The main file in "Z4Money para WooCommerce" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
Take payments using Z4Money.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,420 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 999 | 1,622 | 3,425 |
JavaScript | 8 | 137 | 90 | 655 |
PO File | 1 | 118 | 166 | 328 |
CSS | 2 | 1 | 4 | 11 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 3 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 1 | 3.33% |
Methods | 294 | |
▷ Static methods | 30 | 10.20% |
▷ Public methods | 281 | 95.58% |
▷ Protected methods | 7 | 2.38% |
▷ Private methods | 6 | 2.04% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 21 | |
▷ Global constants | 8 | 38.10% |
▷ Class constants | 13 | 61.90% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/gateway/methods/boleto/assets/public/img/logo_horizontal_min.png | 6.91KB | 2.18KB | ▼ 68.44% |
includes/gateway/methods/creditcard/assets/public/img/logo_horizontal_min.png | 5.01KB | 2.05KB | ▼ 59.14% |