Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.16ms] Passed 4 tests
A check of server-side resources used by Pagamento Moip for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 47.57 ▲3.13 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.50 ▲0.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.10 ▲2.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.29 ▼14.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 47.53 ▲11.89 |
Server storage [IO: ▲1.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 345 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pagamento Moip for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.36 ▲0.00 | 1.87 ▲0.13 | 46.46 ▲4.33 |
Dashboard /wp-admin | 2,212 ▲32 | 5.62 ▲0.02 | 93.20 ▲1.01 | 39.36 ▼3.20 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.04 ▲0.05 | 40.70 ▲4.44 | 35.75 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 22.75 ▼0.82 | 650.73 ▼20.93 | 51.63 ▼1.65 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.20 ▲0.03 | 102.94 ▲0.84 | 45.15 ▲3.71 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-moip-official/vendor/rmccue/requests/examples/session.php
- > /wp-content/plugins/woo-moip-official/vendor/rmccue/requests/examples/cookie_jar.php
- > /wp-content/plugins/woo-moip-official/vendor/rmccue/requests/examples/basic-auth.php
- > /wp-content/plugins/woo-moip-official/vendor/rmccue/requests/examples/cookie.php
- > /wp-content/plugins/woo-moip-official/vendor/rmccue/requests/examples/get.php
- > /wp-content/plugins/woo-moip-official/vendor/rmccue/requests/bin/create_pear_package.php
- > /wp-content/plugins/woo-moip-official/vendor/rmccue/requests/examples/multiple.php
- > /wp-content/plugins/woo-moip-official/vendor/rmccue/requests/examples/post.php
- 90× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/woo-moip-official/vendor/rmccue/requests/library/Requests/Exception/HTTP/414.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/woo-moip-official/vendor/rmccue/requests/library/Requests/Exception/HTTP/501.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/woo-moip-official/vendor/rmccue/requests/tests/Cookies.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/woo-moip-official/vendor/rmccue/requests/library/Requests/Exception/HTTP/410.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Transport' not found in wp-content/plugins/woo-moip-official/vendor/rmccue/requests/library/Requests/Transport/cURL.php:15
- > PHP Fatal error
Uncaught Error: Class 'Moip\\Resource\\MoipResource' not found in wp-content/plugins/woo-moip-official/vendor/moip/moip-sdk-php/src/Resource/Customer.php:11
- > PHP Fatal error
Uncaught Error: Class 'Moip\\Tests\\TestCase' not found in wp-content/plugins/woo-moip-official/vendor/moip/moip-sdk-php/tests/Resource/NotificationPreferencesTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/woo-moip-official/vendor/rmccue/requests/library/Requests/Exception/HTTP/400.php:13
- > PHP Fatal error
Uncaught Error: Class 'Moip\\Tests\\TestCase' not found in wp-content/plugins/woo-moip-official/vendor/moip/moip-sdk-php/tests/Resource/RefundTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Moip\\Resource\\MoipResource' not found in wp-content/plugins/woo-moip-official/vendor/moip/moip-sdk-php/src/Resource/Event.php:10
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: payments, wirecard, split, woocommerce, gateway...
woo-moip-official/woo-moip-official.php 92% from 13 tests
The main file in "Pagamento Moip for WooCommerce" v. 1.4.7.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)
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
Everything looks great! No dangerous files found in this plugin23,036 lines of code in 272 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 196 | 3,498 | 6,776 | 15,259 |
JavaScript | 28 | 698 | 323 | 3,340 |
Sass | 16 | 130 | 16 | 1,444 |
CSS | 2 | 162 | 0 | 1,205 |
Markdown | 12 | 336 | 0 | 746 |
PO File | 1 | 226 | 247 | 470 |
JSON | 5 | 0 | 0 | 228 |
SVG | 2 | 0 | 2 | 196 |
YAML | 5 | 17 | 7 | 77 |
XML | 2 | 2 | 0 | 55 |
Bourne Shell | 2 | 4 | 0 | 12 |
Python | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 151 | |
▷ Abstract classes | 5 | 3.31% |
▷ Concrete classes | 146 | 96.69% |
▷ Final classes | 0 | 0.00% |
Methods | 1,156 | |
▷ Static methods | 256 | 22.15% |
▷ Public methods | 1,025 | 88.67% |
▷ Protected methods | 79 | 6.83% |
▷ Private methods | 52 | 4.50% |
Functions | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
Constants | 116 | |
▷ Global constants | 7 | 6.03% |
▷ Class constants | 109 | 93.97% |
▷ Public constants | 109 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/itau.png | 1.56KB | 1.34KB | ▼ 14.26% |
screenshot-2.png | 19.05KB | 19.85KB | 0.00% |
assets/images/billet-discount.png | 0.42KB | 0.53KB | 0.00% |
screenshot-4.png | 23.59KB | 24.51KB | 0.00% |
assets/images/icons/logo.png | 1.31KB | 1.32KB | 0.00% |