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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼146.87ms] Passed 4 tests
An overview of server-side resources used by Midtrans Payment Gateway for Easy Digital Downloads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▲0.38 | 32.81 ▲10.49 |
Dashboard /wp-admin | 3.41 ▲0.36 | 50.03 ▲2.02 |
Posts /wp-admin/edit.php | 3.46 ▲0.35 | 50.28 ▲3.34 |
Add New Post /wp-admin/post-new.php | 4.94 ▼0.50 | 61.76 ▼596.97 |
Media Library /wp-admin/upload.php | 3.29 ▲0.29 | 36.01 ▲4.12 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for Midtrans Payment Gateway for Easy Digital Downloads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,522 ▼74 | 15.83 ▲0.40 | 6.39 ▼2.07 | 28.90 ▼21.00 |
Dashboard /wp-admin | 2,970 ▲36 | 6.07 ▲0.10 | 148.56 ▼3.67 | 116.99 ▼7.41 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 67.86 ▼3.75 | 95.50 ▼3.68 |
Add New Post /wp-admin/post-new.php | 45 ▼1,638 | 0.90 ▼15.53 | 0.11 ▼354.74 | 28.40 ▼84.38 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.01 ▼0.00 | 158.51 ▲3.07 | 126.96 ▲0.67 |
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
- This plugin does not fully uninstall, leaving 1 option in the database
- recovery_mode_email_last_sent
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: payment, commerce, credit-card, e-commerce, edd...
edd-midtrans-gateway/midtrans-standard.php 85% from 13 tests
"Midtrans Payment Gateway for Easy Digital Downloads" version 2.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("edd-midtrans-gateway.php" instead of "midtrans-standard.php")
- Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
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
Good job! No executable or dangerous file extensions detected1,864 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 207 | 778 | 1,745 |
Markdown | 1 | 20 | 0 | 56 |
JSON | 1 | 0 | 0 | 34 |
XML | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 27 | 81.82% |
▷ Public methods | 22 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 33.33% |
Functions | 31 | |
▷ Named functions | 29 | 93.55% |
▷ Anonymous functions | 2 | 6.45% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin