Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/mijireh-checkout-for-wp-deals/gateway-mijireh.php+224
syntax error, unexpected 'new' (T_NEW)
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.93ms] Passed 4 tests
A check of server-side resources used by Mijireh Checkout for WP Deals
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.52 ▲0.38 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.13 ▼3.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.08 ▼4.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.28 ▼0.62 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.67 ▲6.34 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Mijireh Checkout for WP Deals: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.26 ▲0.01 | 1.80 ▼0.15 | 46.91 ▲2.45 |
Dashboard /wp-admin | 2,198 ▲24 | 5.64 ▲0.01 | 92.21 ▼7.61 | 39.79 ▼5.81 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.02 | 40.42 ▲3.68 | 38.33 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.59 ▲5.82 | 658.78 ▲11.28 | 55.75 ▼1.99 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.02 | 114.35 ▲12.09 | 46.01 ▲1.28 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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)
Good news, no errors were detected
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/mijireh-checkout-for-wp-deals/gateway-mijireh.php on line 224
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Configuration Screen of Mijireh Checkout) image required
mijireh-checkout-for-wp-deals/gateway-mijireh.php 77% from 13 tests
"Mijireh Checkout for WP Deals" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/lang")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mijireh-checkout-for-wp-deals.php" instead of "gateway-mijireh.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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,122 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 237 | 209 | 928 |
CSS | 1 | 1 | 1 | 153 |
JavaScript | 1 | 8 | 2 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 3 | 3.85% |
▷ Public methods | 64 | 82.05% |
▷ Protected methods | 5 | 6.41% |
▷ Private methods | 9 | 11.54% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 51.96KB | 27.83KB | ▼ 46.43% |
assets/images/mijireh-logo.png | 5.66KB | 5.73KB | 0.00% |
assets/images/credit_cards.png | 4.89KB | 1.62KB | ▼ 66.81% |
assets/images/mijireh.png | 1.82KB | 1.48KB | ▼ 18.71% |