Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.14ms] Passed 4 tests
This is a short check of server-side resources used by MerchantX Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.41 ▼2.94 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.93 ▼4.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.67 ▼3.50 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.06 ▼14.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.18 ▲3.27 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for MerchantX Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.57 ▼1.07 | 1.69 ▼0.09 | 39.18 ▼1.99 |
Dashboard /wp-admin | 2,216 ▲28 | 4.79 ▼1.10 | 100.20 ▼6.19 | 39.18 ▼2.24 |
Posts /wp-admin/edit.php | 2,095 ▲27 | 2.18 ▲0.17 | 34.91 ▼1.82 | 32.15 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.05 ▼0.37 | 587.92 ▼55.24 | 53.71 ▼6.47 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.36 ▲0.24 | 96.88 ▼5.84 | 42.61 ▲0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: woocommerce payment gateway, nmi plugins, merchantx, nmi, nmi gateway...
merchantx/merchantx.php 92% from 13 tests
The main PHP file in "MerchantX Gateway for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 151 characters long)
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
Good job! No executable or dangerous file extensions detected775 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 150 | 287 | 775 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 5 | 11.63% |
▷ Public methods | 37 | 86.05% |
▷ Protected methods | 1 | 2.33% |
▷ Private methods | 5 | 11.63% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mastercard.png | 1.62KB | 1.40KB | ▼ 13.37% |
images/jcb.png | 1.05KB | 0.76KB | ▼ 27.31% |
images/dinersclub.png | 1.27KB | 1.17KB | ▼ 8.22% |
images/visa.png | 1.25KB | 1.29KB | 0.00% |
images/discover.png | 1.28KB | 1.30KB | 0.00% |