Benchmarks
Plugin footprint 82% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.17ms] Passed 4 tests
A check of server-side resources used by WooCommerce iugu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.82 ▲0.61 |
Dashboard /wp-admin | 3.35 ▲0.00 | 47.35 ▼16.64 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.38 ▼3.40 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.07 ▼14.54 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.37 ▼2.08 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/iugu-woocommerce/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/iugu-woocommerce/wiki/Configura\303\247\303\243o.md"
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce iugu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.51 ▼0.12 | 1.77 ▼0.15 | 43.45 ▲4.65 |
Dashboard /wp-admin | 2,198 ▲30 | 5.59 ▼0.03 | 95.12 ▲9.17 | 42.33 ▼1.11 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.05 | 34.65 ▼2.19 | 34.34 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.79 ▲0.76 | 683.91 ▲3.83 | 53.62 ▼22.67 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.22 ▲0.05 | 95.03 ▼7.49 | 43.53 ▼1.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/iugu-woocommerce/views/admin-notices/html-notice-woocommerce-account.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in iugu-woocommerce/assets to your readme.txt
iugu-woocommerce/iugu-woocommerce.php 77% from 13 tests
"WooCommerce iugu" version 3.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path should be prefixed with a forward slash character ("/lang/")
- Requires at least: The required version number did not match the one declared in readme.txt ("3.9" instead of "5.6")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lang/")
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
Success! There were no dangerous files found in this plugin5,544 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 318 | 797 | 3,993 |
JavaScript | 15 | 89 | 89 | 778 |
PO File | 1 | 258 | 390 | 574 |
Markdown | 9 | 41 | 0 | 101 |
CSS | 4 | 11 | 1 | 98 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 5.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 17 | 12.32% |
▷ Public methods | 113 | 81.88% |
▷ Protected methods | 17 | 12.32% |
▷ Private methods | 8 | 5.80% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 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
PNG images were not found in this plugin