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 gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼11.83ms] Passed 4 tests
Server-side resources used by Due.com E-Commerce Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.66 ▼3.13 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.75 ▼12.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.32 ▲1.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.14 ▼23.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.73 ▼7.85 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Due.com E-Commerce Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.10 ▼0.18 | 1.84 ▲0.14 | 44.12 ▼2.71 |
Dashboard /wp-admin | 2,195 ▲15 | 5.54 ▼0.12 | 83.79 ▼12.93 | 40.73 ▼3.37 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▼0.01 | 33.88 ▼7.96 | 33.00 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.25 ▲0.19 | 674.36 ▲44.27 | 59.08 ▲7.56 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.31 ▲0.04 | 104.88 ▼12.83 | 47.33 ▼1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Tested up to: Invalid plugin version format
- Requires at least: Invalid plugin version format
duecom-e-commerce-payment-gateway/woocommerce-gateway-duecom.php 92% from 13 tests
The entry point to "Due.com E-Commerce Payment Gateway" version 1.4.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("duecom-e-commerce-payment-gateway.php" instead of "woocommerce-gateway-duecom.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
Everything looks great! No dangerous files found in this plugin1,751 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 249 | 765 | 1,562 |
JavaScript | 1 | 20 | 14 | 100 |
JSON | 3 | 0 | 0 | 86 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 19.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 43 | 47.25% |
▷ Public methods | 85 | 93.41% |
▷ Protected methods | 5 | 5.49% |
▷ Private methods | 1 | 1.10% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/due.png | 5.08KB | 1.97KB | ▼ 61.28% |