Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.25ms] Passed 4 tests
Analyzing server-side resources used by OIS-Bizcraft Checkout Gateway Plus
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.70 ▼1.89 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.89 ▼1.22 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.63 ▼4.06 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 81.51 ▼13.39 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.46 ▼1.66 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OIS-Bizcraft Checkout Gateway Plus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.22 ▼0.05 | 1.87 ▼0.04 | 39.54 ▼5.64 |
Dashboard /wp-admin | 2,198 ▲30 | 5.62 ▼0.11 | 89.40 ▼13.67 | 36.90 ▼9.34 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▼0.02 | 36.38 ▼2.39 | 30.18 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.02 ▲4.97 | 622.76 ▲1.62 | 61.45 ▼37.40 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▲0.11 | 98.73 ▼9.20 | 44.05 ▼1.45 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== ois-bizcraft-checkout-gateway-plus ===
) - Tags: There are too many tags (15 tag instead of maximum 10)
ois-bizcraft-checkout-gateway-plus/oisbizcraft-payment-solution-plus.php 92% from 13 tests
Analyzing the main PHP file in "OIS-Bizcraft Checkout Gateway Plus" version 1.2.1
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ois-bizcraft-checkout-gateway-plus.php" instead of "oisbizcraft-payment-solution-plus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected294 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 80 | 294 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 1 | 9.09% |
▷ 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo-ois.png | 37.08KB | 19.10KB | ▼ 48.48% |
assets/logo.png | 38.92KB | 15.01KB | ▼ 61.43% |