Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.03ms] Passed 4 tests
Analyzing server-side resources used by mBills Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 35.01 ▼0.60 |
Dashboard /wp-admin | 3.43 ▲0.12 | 47.71 ▲1.74 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 42.05 ▼1.54 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 83.50 ▼3.23 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 33.98 ▲1.26 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for mBills Payment Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.35 ▼0.02 | 1.60 ▼0.10 | 36.13 ▼7.56 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.11 | 81.66 ▼8.77 | 35.87 ▼5.18 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.15 | 35.29 ▼2.44 | 31.75 ▼5.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.75 ▲0.28 | 581.57 ▼50.36 | 52.11 ▼1.04 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.28 ▲0.09 | 103.54 ▲0.41 | 45.15 ▲0.46 |
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
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mbills-payment-getaway-for-woocommerce/includes/payment.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% 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 your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in mbills-payment-getaway-for-woocommerce/assets to your readme.txt
- Contributors: Plugin contributors field is missing
mbills-payment-getaway-for-woocommerce/mbills-payment-plugin.php 77% from 13 tests
The main PHP script in "mBills Payment Gateway for WooCommerce" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- 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
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mbills-payment-getaway-for-woocommerce.php" instead of "mbills-payment-plugin.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
There were no executable files found in this plugin885 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 210 | 153 | 629 |
CSS | 3 | 4 | 8 | 144 |
JavaScript | 4 | 15 | 29 | 112 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/icon/mBills2020_vertical_RGB.png | 1.61KB | 0.98KB | ▼ 38.94% |
includes/icon/logo1.png | 2.29KB | 1.79KB | ▼ 21.83% |