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.01MB] [CPU: ▼6.63ms] Passed 4 tests
Server-side resources used by Payment Integration Wompi - El Salvador
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.68 ▲0.63 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.46 ▼3.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.16 ▼3.78 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.06 ▼19.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.24 ▲1.04 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Payment Integration Wompi - El Salvador
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.12 | 4.20 ▲2.24 | 44.55 ▼2.35 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.99 | 100.88 ▼19.23 | 41.21 ▼4.17 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.00 ▼0.08 | 37.76 ▼0.01 | 34.17 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.51 ▲5.90 | 662.74 ▼5.58 | 55.63 ▼5.01 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.01 | 100.47 ▼1.53 | 46.80 ▲1.22 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wompi-el-salvador/wc-WOMPI-payment-gateway.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wompi-el-salvador/wc-WOMPI-payment.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Tested up to: Invalid plugin version format
wompi-el-salvador/wc-WOMPI-payment-gateway.php 92% from 13 tests
The primary PHP file in "Payment Integration Wompi - El Salvador" version 1.2.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wompi-el-salvador.php" instead of "wc-WOMPI-payment-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin18 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 552 | 18 |
PHP code Passed 2 tests
An overview 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.18 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 6.60 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.79MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 643.63KB | 121.35KB | ▼ 81.15% |
assets/banner-772x250.png | 47.70KB | 23.85KB | ▼ 50.01% |
assets/images/wompi.png | 10.79KB | 4.13KB | ▼ 61.72% |
assets/icon-256x256.png | 79.75KB | 14.47KB | ▼ 81.85% |
assets/images/wompi2.png | 22.40KB | 22.45KB | 0.00% |