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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.84ms] Passed 4 tests
This is a short check of server-side resources used by Payment Gateway for Pagalo on WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.27 ▼3.63 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.04 ▲0.37 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.16 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.02 ▼1.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.25 ▼2.11 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Payment Gateway for Pagalo on WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.16 ▼1.43 | 1.81 ▼0.20 | 46.24 ▼2.16 |
Dashboard /wp-admin | 2,209 ▲20 | 5.90 ▲0.99 | 96.35 ▼15.11 | 38.63 ▼3.05 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▲0.03 | 41.24 ▲5.94 | 33.91 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,534 ▲14 | 23.11 ▼0.19 | 643.90 ▼58.87 | 53.93 ▼12.07 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.20 ▼0.03 | 93.61 ▼3.47 | 41.74 ▼4.69 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pagalocard-woocommerce/wp-pagalocard-woocommerce.php:28
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/wp-pagalocard-woocommerce/includes/wp-pagalocard-woocommerce-admin.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
wp-pagalocard-woocommerce/wp-pagalocard-woocommerce.php 92% from 13 tests
The main file in "Payment Gateway for Pagalo on WooCommerce" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "4.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin345 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 77 | 92 | 229 |
PO File | 1 | 30 | 31 | 116 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 49.01KB | 22.61KB | ▼ 53.87% |
assets/screenshot-2.png | 25.46KB | 12.37KB | ▼ 51.41% |
assets/screenshot-3.png | 14.51KB | 7.68KB | ▼ 47.10% |
assets/icon-256x256.png | 5.77KB | 2.82KB | ▼ 51.11% |
assets/banner-772x250.png | 51.40KB | 18.48KB | ▼ 64.04% |