Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.72ms] Passed 4 tests
A check of server-side resources used by Payment in-Lire Gateway 2 Steps Order
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.25 ▼2.28 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.23 ▼1.96 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.32 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.45 ▲0.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.47 ▲1.16 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Payment in-Lire Gateway 2 Steps Order: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 13.17 ▼1.52 | 1.73 ▼0.37 | 42.57 ▼2.70 |
Dashboard /wp-admin | 2,214 ▲26 | 4.85 ▼0.21 | 105.32 ▼10.26 | 42.40 ▼3.37 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.00 | 39.26 ▼0.26 | 34.93 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 18.11 ▼5.27 | 602.56 ▼36.22 | 60.83 ▲12.46 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.35 ▲0.19 | 99.40 ▲1.48 | 40.32 ▼2.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The SRP test was a success
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Contributors: The plugin contributors field is not present
payment-in-lire-gateway-2-steps-order/payment-inlire-gateway2-steps-order.php 85% from 13 tests
The main file in "Payment in-Lire Gateway 2 Steps Order" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("payment-in-lire-gateway-2-steps-order.php" instead of "payment-inlire-gateway2-steps-order.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected578 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 147 | 403 | 578 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 11.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 6 | 13.95% |
▷ Public methods | 39 | 90.70% |
▷ Protected methods | 1 | 2.33% |
▷ Private methods | 3 | 6.98% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/inlire.png | 5.65KB | 2.95KB | ▼ 47.84% |