Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼310.03ms] Passed 4 tests
A check of server-side resources used by Donate visa
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.15 | 57.28 ▼1.18 |
Dashboard /wp-admin | 3.51 ▲0.09 | 38.84 ▲2.21 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 43.73 ▲1.01 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 101.92 ▼1,236.04 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 27.15 ▼3.92 |
Donations /wp-admin/admin.php?page=donate-donatevisa | 3.35 | 26.39 |
Configuration /wp-admin/admin.php?page=config-donatevisa | 3.35 | 27.64 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Donate visa
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,941 ▲197 | 17.11 ▲1.48 | 17.87 ▲11.55 | 2.10 ▼0.23 |
Dashboard /wp-admin | 2,928 ▲70 | 6.08 ▼0.12 | 119.65 ▼18.15 | 223.21 ▲59.93 |
Posts /wp-admin/edit.php | 2,725 ▲37 | 3.14 ▼0.10 | 64.60 ▲2.28 | 138.23 ▼3.93 |
Add New Post /wp-admin/post-new.php | 1,741 ▲80 | 15.48 ▼0.88 | 361.64 ▼49.49 | 186.92 ▼17.33 |
Media Library /wp-admin/upload.php | 1,732 ▲34 | 5.57 ▲0.05 | 122.82 ▼19.14 | 196.15 ▲5.75 |
Donations /wp-admin/admin.php?page=donate-donatevisa | 1,005 | 2.43 | 52.70 | 103.53 |
Configuration /wp-admin/admin.php?page=config-donatevisa | 1,156 | 2.63 | 51.03 | 136.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: checkout, visa, donate, form
donate-visa/donate-visa.php Passed 13 tests
This is the main PHP file of "Donate visa" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
Donation form with Visa payment method.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected532 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 50 | 59 | 310 |
PO File | 1 | 42 | 44 | 98 |
JavaScript | 2 | 24 | 0 | 89 |
CSS | 1 | 5 | 0 | 35 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/favicon.png | 1.09KB | 1.03KB | ▼ 5.38% |