Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.82ms] Passed 4 tests
A check of server-side resources used by WooCommerce mPAY24 Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 49.12 ▲6.54 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.81 ▼3.89 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.09 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 99.75 ▼7.68 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.78 ▲0.96 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce mPAY24 Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▲0.08 | 1.75 ▲0.09 | 41.34 ▼4.26 |
Dashboard /wp-admin | 2,192 ▲15 | 5.59 ▼0.05 | 85.68 ▼13.07 | 39.45 ▲0.23 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▲0.01 | 34.08 ▼4.76 | 32.12 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,526 ▼15 | 23.24 ▲0.04 | 654.94 ▼32.39 | 58.51 ▼5.99 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.19 ▲0.01 | 98.26 ▼11.74 | 40.60 ▼7.12 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- 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)
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/woocommerce-mpay24-gateway/admin/gateway-mpay24-install.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 require attention:
- Donate link: Invalid URI ("")
woocommerce-mpay24-gateway/gateway-mpay24.php 92% from 13 tests
The main file in "WooCommerce mPAY24 Gateway" v. 1.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-mpay24-gateway.php" instead of "gateway-mpay24.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected25,375 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 36 | 2,383 | 2,551 | 10,073 |
HTML | 22 | 889 | 66 | 7,187 |
CSS | 7 | 113 | 35 | 5,012 |
PHP | 6 | 589 | 1,106 | 2,190 |
XSD | 1 | 0 | 0 | 580 |
PO File | 1 | 94 | 142 | 242 |
SVG | 1 | 1 | 1 | 91 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 26.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 169 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 152 | 89.94% |
▷ Protected methods | 4 | 2.37% |
▷ Private methods | 13 | 7.69% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
MPay24/doc/img/apple-touch-icon-72x72.png | 12.45KB | 5.26KB | ▼ 57.74% |
MPay24/doc/img/icons/visibility_public.png | 3.37KB | 0.89KB | ▼ 73.57% |
MPay24/doc/img/icons/icon-folder-open-big.png | 0.23KB | 0.25KB | 0.00% |
MPay24/doc/img/iviewer/iviewer.rotate_right.png | 1.45KB | 1.46KB | 0.00% |
MPay24/doc/img/icons/constant.png | 0.48KB | 0.41KB | ▼ 14.72% |