Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.16ms] Passed 4 tests
Server-side resources used by WC Moneris Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 42.30 ▲0.02 |
Dashboard /wp-admin | 3.38 ▲0.03 | 49.32 ▼1.93 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 49.54 ▼0.57 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 86.16 ▼8.96 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 36.58 ▼5.18 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WC Moneris Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲10 | 14.29 ▼0.31 | 1.86 ▼0.23 | 44.06 ▲0.56 |
Dashboard /wp-admin | 2,202 ▲25 | 5.52 ▼0.04 | 84.21 ▼5.92 | 39.31 ▲0.08 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▼0.00 | 37.18 ▲1.82 | 37.52 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.10 ▲0.03 | 639.43 ▼68.32 | 64.38 ▲3.98 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.17 ▼0.00 | 98.34 ▼0.66 | 45.48 ▲2.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: payment gateway, canada payment gateway, moneris, credit card, woocommerce moneris payment gateway...
wc-moneris-payment-gateway/wc-moneris-payment-gateway.php 85% from 13 tests
The entry point to "WC Moneris Payment Gateway" version 3.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin6,403 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 1,577 | 681 | 6,082 |
CSS | 2 | 19 | 0 | 152 |
PO File | 1 | 48 | 54 | 137 |
JSON | 2 | 0 | 0 | 22 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 77 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 856 | |
▷ Static methods | 17 | 1.99% |
▷ Public methods | 821 | 95.91% |
▷ Protected methods | 8 | 0.93% |
▷ Private methods | 27 | 3.15% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 15 | |
▷ Global constants | 10 | 66.67% |
▷ Class constants | 5 | 33.33% |
▷ Public constants | 5 | 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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 1.74KB | 1.19KB | ▼ 31.88% |
assets/images/logo-dark.png | 8.20KB | 2.88KB | ▼ 64.86% |
assets/images/wp-heka-site-logo.png | 5.20KB | 0.97KB | ▼ 81.42% |