Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▲3.48ms] Passed 4 tests
This is a short check of server-side resources used by Paga con MODO
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.29 ▲3.37 |
Dashboard /wp-admin | 3.31 ▲0.00 | 55.48 ▲5.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.17 ▲2.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 98.57 ▲11.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.85 ▲2.27 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Paga con MODO: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.31 ▼0.28 | 1.66 ▼0.25 | 45.67 ▲2.85 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.05 | 101.56 ▲18.89 | 46.65 ▲3.95 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.00 | 44.29 ▲9.29 | 36.45 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,527 ▲1 | 21.20 ▼1.90 | 674.71 ▼4.09 | 52.45 ▲5.15 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.21 ▲0.02 | 94.31 ▼4.17 | 43.04 ▼1.84 |
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
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function Ecomerciar\\MODO\\Gateway\\apply_filters() in wp-content/plugins/paga-con-modo/Gateway/settings.php:12
- > PHP Fatal error
Trait 'Ecomerciar\\MODO\\Helper\\LoggerTrait' not found in wp-content/plugins/paga-con-modo/Helper/Helper.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Checkout.) image required
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== paga-con-modo ===
)
paga-con-modo/modo.php 85% from 13 tests
The primary PHP file in "Paga con MODO" version 1.0.19 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("paga-con-modo.php" instead of "modo.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin1,460 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 182 | 581 | 1,154 |
SVG | 2 | 0 | 0 | 123 |
JavaScript | 1 | 7 | 0 | 102 |
YAML | 2 | 23 | 1 | 76 |
INI | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 5 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 39 | 54.93% |
▷ Public methods | 64 | 90.14% |
▷ Protected methods | 2 | 2.82% |
▷ Private methods | 5 | 7.04% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 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
18 PNG files occupy 0.30MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/banner-1544x500-rtl.png | 66.96KB | 30.59KB | ▼ 54.31% |
assets/img/MODO-banner.png | 19.82KB | 8.75KB | ▼ 55.84% |
assets/img/MODO-icon-white.png | 21.15KB | 11.42KB | ▼ 45.99% |
assets/img/MODO-logo-xs.png | 7.01KB | 3.44KB | ▼ 50.99% |
assets/img/checkout_05.png | 5.49KB | 3.54KB | ▼ 35.43% |