Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.50ms] Passed 4 tests
This is a short check of server-side resources used by MagicWay Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.65 ▼5.33 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.11 ▼9.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.36 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.19 ▲1.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.92 ▼2.36 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- You have illegally modified 2 files (0.00KB) outside of "wp-content/plugins/magicway-payment-gateway/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/magicway-payment-gateway/images/icon-256\303\227256.png"
- (new file) "wp-content/plugins/magicway-payment-gateway/images/banner-772\303\227250.png"
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
magicway_easy_version |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by MagicWay Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.10 | 1.66 ▼0.13 | 40.61 ▼8.48 |
Dashboard /wp-admin | 2,206 ▲15 | 5.89 ▲0.01 | 95.85 ▼21.57 | 40.72 ▼2.79 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.00 | 39.61 ▲2.44 | 37.67 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,547 ▲22 | 18.41 ▲0.89 | 608.22 ▼80.55 | 69.62 ▼5.39 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▼0.02 | 94.37 ▼8.33 | 44.65 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'MagicwayPaymentDeactivator' not found or invalid function name
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- magicway_easy_version
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/magicway-payment-gateway/momagic-securepay.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: payment, magicway, international-payment-gateway, cart, gateway...
magicway-payment-gateway/momagic-securepay.php 92% from 13 tests
This is the main PHP file of "MagicWay Payment Gateway" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("magicway-payment-gateway.php" instead of "momagic-securepay.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
Success! There were no dangerous files found in this plugin410 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 44 | 57 | 410 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.37MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-772×250.png | 229.53KB | 78.14KB | ▼ 65.95% |
images/screenshot-1.png | 10.01KB | 6.31KB | ▼ 36.97% |
images/icon-256×256.png | 17.11KB | 7.27KB | ▼ 57.49% |
images/screenshot-3.png | 37.56KB | 19.71KB | ▼ 47.52% |
images/mmbd-verified.png | 5.52KB | 3.19KB | ▼ 42.31% |