Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.90ms] Passed 4 tests
A check of server-side resources used by WooCommerce EasyPayWay A Bangladeshi Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.30 ▼2.61 |
Dashboard /wp-admin | 3.36 ▲0.02 | 48.68 ▼13.20 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.87 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 95.65 ▼8.06 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.29 ▼3.74 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce EasyPayWay A Bangladeshi Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲44 | 13.25 ▼1.13 | 4.81 ▲2.54 | 42.28 ▲2.23 |
Dashboard /wp-admin | 2,215 ▲12 | 5.84 ▲0.96 | 102.16 ▼5.57 | 38.87 ▼2.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.04 | 39.70 ▲2.19 | 38.32 ▲2.57 |
Add New Post /wp-admin/post-new.php | 1,554 ▲9 | 18.48 ▼4.87 | 661.14 ▼1.38 | 55.80 ▼0.42 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▼0.12 | 112.36 ▼7.69 | 45.93 ▼3.23 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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 | 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
Almost there! Just fix the following items
- 1× 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/easypayway-is-a-bangladeshi-payment-gateway-with-the-woocommerce-plugin/index.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (WooCommerce payment gateway setting page), #2 (EasyPayWay setting page), #3 (Success message), #4 (Info message if the payment for this transaction has been made by an American Express Card), #5 (Transaction declined Message), #6 (EasyPayWay Payment gateway option at the checkout page)
- Plugin Name: Please specify the plugin name on the first line (
=== easypayway-is-a-bangladeshi-payment-gateway-with-the-woocommerce-plugin ===
)
easypayway-is-a-bangladeshi-payment-gateway-with-the-woocommerce-plugin/index.php 92% from 13 tests
The principal PHP file in "WooCommerce EasyPayWay A Bangladeshi Payment Gateway" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("easypayway-is-a-bangladeshi-payment-gateway-with-the-woocommerce-plugin.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin286 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 78 | 286 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 64.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 35.71% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 20.21KB | 8.68KB | ▼ 57.07% |
screenshot-1.png | 29.60KB | 15.40KB | ▼ 47.98% |
screenshot-2.png | 81.66KB | 29.61KB | ▼ 63.74% |
screenshot-5.png | 18.49KB | 7.70KB | ▼ 58.34% |
screenshot-3.png | 19.43KB | 8.43KB | ▼ 56.60% |