Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.75ms] Passed 4 tests
Server-side resources used by Mijireh Checkout for MarketPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.20 ▼2.00 |
Dashboard /wp-admin | 3.37 ▲0.03 | 47.65 ▼12.70 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.12 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.13 ▼4.70 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.59 ▲6.31 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Mijireh Checkout for MarketPress: 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 ▲28 | 14.35 ▼0.01 | 1.61 ▼0.05 | 36.75 ▲0.43 |
Dashboard /wp-admin | 2,195 ▲21 | 5.51 ▼0.15 | 83.46 ▼6.74 | 39.61 ▼4.57 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.01 ▲0.03 | 35.18 ▼7.79 | 36.37 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.17 ▲0.28 | 660.06 ▲68.87 | 51.14 ▲4.02 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.16 ▼0.04 | 95.63 ▼5.69 | 43.11 ▼2.56 |
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
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- 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)
The smoke test was a success, however most plugin functionality was not tested
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mijireh-checkout-for-marketpress/mijireh.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Configuration Screen of Mijireh Checkout) image required
mijireh-checkout-for-marketpress/mijireh.php 77% from 13 tests
The main PHP file in "Mijireh Checkout for MarketPress" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("mijireh-checkout-for-marketpress.php" instead of "mijireh.php")
- Domain Path: The domain path folder was not found ("/lang")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin1,235 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 265 | 241 | 1,041 |
CSS | 1 | 1 | 1 | 153 |
JavaScript | 1 | 8 | 2 | 41 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.54 |
▷ 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 | 83 | |
▷ Static methods | 3 | 3.61% |
▷ Public methods | 69 | 83.13% |
▷ Protected methods | 5 | 6.02% |
▷ Private methods | 9 | 10.84% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mijireh-checkout-logo.png | 55.23KB | 14.35KB | ▼ 74.02% |
screenshot-1.png | 71.34KB | 36.11KB | ▼ 49.39% |
assets/images/mijireh.png | 1.82KB | 1.48KB | ▼ 18.71% |
assets/images/mijireh-logo.png | 5.66KB | 5.73KB | 0.00% |
assets/images/credit_cards.png | 4.89KB | 1.62KB | ▼ 66.81% |