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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.62ms] Passed 4 tests
An overview of server-side resources used by Mijireh Checkout for Jigoshop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.90 ▼1.73 |
Dashboard /wp-admin | 3.37 ▲0.06 | 52.90 ▲3.28 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.81 ▼1.98 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.19 ▼2.03 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 50.18 ▲8.06 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Mijireh Checkout for Jigoshop
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.10 | 1.87 ▲0.18 | 41.46 ▼5.20 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼1.08 | 117.46 ▲8.58 | 48.55 ▲10.40 |
Posts /wp-admin/edit.php | 2,089 ▼6 | 1.97 ▼0.07 | 38.47 ▼10.32 | 34.45 ▼8.45 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.29 ▲0.13 | 658.08 ▼96.84 | 74.57 ▲11.43 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.08 | 104.40 ▼36.80 | 43.31 ▼5.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mijireh-checkout-for-jigoshop/gateway-mijireh.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Configuration Screen of Mijireh Checkout)
mijireh-checkout-for-jigoshop/gateway-mijireh.php 77% from 13 tests
The main PHP script in "Mijireh Checkout for Jigoshop" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("mijireh-checkout-for-jigoshop.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
- Domain Path: The domain path folder does not exist ("/lang")
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
No dangerous file extensions were detected1,152 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 238 | 207 | 958 |
CSS | 1 | 1 | 1 | 153 |
JavaScript | 1 | 8 | 2 | 41 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.57 |
▷ 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 | 77 | |
▷ Static methods | 3 | 3.90% |
▷ Public methods | 62 | 80.52% |
▷ Protected methods | 6 | 7.79% |
▷ Private methods | 9 | 11.69% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 10.52KB | 6.17KB | ▼ 41.35% |
assets/images/mijireh.png | 1.82KB | 1.48KB | ▼ 18.71% |
assets/images/mijireh-logo.png | 5.66KB | 5.73KB | 0.00% |
assets/images/mijireh-checkout-logo.png | 55.23KB | 14.35KB | ▼ 74.02% |
assets/images/credit_cards.png | 4.89KB | 1.62KB | ▼ 66.81% |