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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼11.51ms] Passed 4 tests
A check of server-side resources used by MaaliPay for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.38 ▼4.22 |
Dashboard /wp-admin | 3.35 ▲0.01 | 49.77 ▼18.55 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 49.77 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.25 ▼20.21 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.57 ▼1.04 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by MaaliPay for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.38 ▼0.29 | 1.67 ▲0.01 | 42.75 ▼0.86 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.08 | 85.56 ▼10.14 | 39.93 ▼3.22 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.04 | 39.83 ▲5.10 | 36.56 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.10 ▲5.68 | 688.61 ▲13.98 | 49.47 ▼18.29 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.27 ▲0.07 | 103.01 ▼8.98 | 46.17 ▼2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: A description for screenshot #3 is missing in maalipay-for-woocommerce/assets to your readme.txt
maalipay-for-woocommerce/index.php 69% from 13 tests
The primary PHP file in "MaaliPay for WooCommerce" version 1.0.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.4.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("maalipay-for-woocommerce.php" instead of "index.php")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,072 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 162 | 743 | 983 |
CSS | 1 | 1 | 7 | 53 |
JavaScript | 2 | 5 | 6 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 1 | 1.47% |
▷ Public methods | 26 | 38.24% |
▷ Protected methods | 42 | 61.76% |
▷ Private methods | 0 | 0.00% |
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
3 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/maalipay-logo.png | 55.25KB | 21.50KB | ▼ 61.08% |
assets/images/forwards-logo.png | 1.02KB | 1.30KB | 0.00% |
assets/images/maalicard-icon.png | 4.00KB | 1.90KB | ▼ 52.50% |