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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.01ms] Passed 4 tests
This is a short check of server-side resources used by Claudio Sanches - Moip for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 49.15 ▲11.00 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.81 ▼0.23 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.46 ▼1.13 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.75 ▼5.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.23 ▲2.62 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Claudio Sanches - Moip for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▼0.08 | 1.88 ▼0.41 | 44.54 ▼7.04 |
Dashboard /wp-admin | 2,201 ▲24 | 5.55 ▼0.07 | 90.07 ▼5.05 | 40.60 ▼1.39 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.97 ▼0.00 | 36.21 ▲0.28 | 38.09 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,532 ▼3 | 23.60 ▲5.31 | 689.18 ▲6.31 | 75.79 ▲6.72 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.13 ▼0.07 | 118.13 ▲8.18 | 49.67 ▲6.27 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-moip/includes/class-wc-moip-gateway.php:7
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: moip, checkout, woocommerce
woocommerce-moip/woocommerce-moip.php 92% from 13 tests
"Claudio Sanches - Moip for WooCommerce" version 2.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("3.8" instead of "3.0")
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
There were no executable files found in this plugin1,583 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 211 | 339 | 1,227 |
JavaScript | 2 | 63 | 56 | 262 |
Sass | 1 | 21 | 2 | 94 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 21.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 10 | 23.81% |
▷ Public methods | 31 | 73.81% |
▷ Protected methods | 10 | 23.81% |
▷ Private methods | 1 | 2.38% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mastercard.png | 1.57KB | 1.39KB | ▼ 10.92% |
assets/images/hipercard.png | 1.49KB | 1.38KB | ▼ 7.21% |
assets/images/itau.png | 1.56KB | 1.34KB | ▼ 14.26% |
assets/images/bancodobrasil.png | 1.70KB | 1.44KB | ▼ 15.34% |
assets/images/bradesco.png | 1.46KB | 1.29KB | ▼ 11.67% |