Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.66MB] [CPU: ▼18.04ms] Passed 4 tests
Server-side resources used by Mobipaid
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.57 ▼3.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.05 ▼5.17 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.99 ▲0.01 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.69 | 34.88 ▼63.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.77 ▲2.72 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
mobipaid_plugin_version |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Mobipaid
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.72 ▲0.51 | 1.55 ▼0.61 | 39.60 ▼4.17 |
Dashboard /wp-admin | 2,195 ▲17 | 5.63 ▲0.05 | 91.86 ▼9.16 | 37.08 ▼8.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.05 | 41.92 ▼0.06 | 35.52 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,535 ▼3 | 18.19 ▼4.53 | 618.48 ▼43.93 | 66.07 ▲14.70 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.21 | 96.14 ▼15.11 | 43.40 ▼4.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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)
Good news, no errors were detected
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: apple pay, payment method, nedbank, credit card, google pay...
mobipaid/mobipaid.php Passed 13 tests
"Mobipaid" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Receive payments using Mobipaid.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,995 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 360 | 360 | 1,229 |
PHP | 5 | 163 | 352 | 766 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 51.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 10 | 27.03% |
▷ Public methods | 29 | 78.38% |
▷ Protected methods | 8 | 21.62% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/mp-logo.png | 0.47KB | 0.33KB | ▼ 28.81% |