100% donate-visa

Code Review | Donate visa

WordPress plugin Donate visa scored 100% from 54 tests.

About plugin

  • Plugin page: donate-visa
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-4.9.6
  • WordPress version: 5.9.2
  • First release: Aug 1, 2018
  • Latest release: Aug 1, 2018
  • Number of updates: 2
  • Update frequency: every 20.0 days
  • Top authors: saulmorales (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 931 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1557.28 ▼1.18
Dashboard /wp-admin3.51 ▲0.0938.84 ▲2.21
Posts /wp-admin/edit.php3.73 ▲0.0943.73 ▲1.01
Add New Post /wp-admin/post-new.php6.96 ▼0.01101.92 ▼1,236.04
Media Library /wp-admin/upload.php3.38 ▲0.0827.15 ▼3.92
Donations /wp-admin/admin.php?page=donate-donatevisa3.3526.39
Configuration /wp-admin/admin.php?page=config-donatevisa3.3527.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,941 ▲19717.11 ▲1.4817.87 ▲11.552.10 ▼0.23
Dashboard /wp-admin2,928 ▲706.08 ▼0.12119.65 ▼18.15223.21 ▲59.93
Posts /wp-admin/edit.php2,725 ▲373.14 ▼0.1064.60 ▲2.28138.23 ▼3.93
Add New Post /wp-admin/post-new.php1,741 ▲8015.48 ▼0.88361.64 ▼49.49186.92 ▼17.33
Media Library /wp-admin/upload.php1,732 ▲345.57 ▲0.05122.82 ▼19.14196.15 ▲5.75
Donations /wp-admin/admin.php?page=donate-donatevisa1,0052.4352.70103.53
Configuration /wp-admin/admin.php?page=config-donatevisa1,1562.6351.03136.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:
LanguageFilesBlank linesComment linesLines of code
PHP45059310
PO File1424498
JavaScript224089
CSS15035

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 code0.29
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods212.50%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/favicon.png1.09KB1.03KB▼ 5.38%