84% donate-with-robokassa

Code Review | Donate With Robokassa

WordPress plugin Donate With Robokassa scored 84% from 54 tests.

About plugin

  • Plugin page: donate-with-robok...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-3.6.1
  • WordPress version: 5.8.1
  • First release: Mar 11, 2015
  • Latest release: Mar 11, 2015
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: Malgin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,255 total downloads


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.10MB] [CPU: ▼143.03ms] Passed 4 tests

An overview of server-side resources used by Donate With Robokassa
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1033.26 ▲0.66
Dashboard /wp-admin3.16 ▲0.1144.30 ▲1.10
Posts /wp-admin/edit.php3.25 ▲0.1444.23 ▼0.69
Add New Post /wp-admin/post-new.php5.52 ▲0.0984.41 ▼573.18
Media Library /wp-admin/upload.php3.11 ▲0.1033.10 ▲2.60
Donate With Robokassa (DWR) /wp-admin/options-general.php?page=donate-with-robokassa3.0727.24
DWR Statistics /wp-admin/options-general.php?page=donate-with-robokassa-statistics3.0831.29

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 8 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Donate With Robokassa
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,717 ▲12115.89 ▲0.1810.51 ▼0.9748.50 ▼4.04
Dashboard /wp-admin2,979 ▲456.05 ▲0.08151.42 ▲11.18109.85 ▼6.59
Posts /wp-admin/edit.php2,751 ▲122.71 ▼0.0165.41 ▲2.9490.91 ▲4.30
Add New Post /wp-admin/post-new.php3,644 ▲2,14615.23 ▼3.66409.47 ▲40.29106.74 ▼9.66
Media Library /wp-admin/upload.php1,837 ▲275.05 ▲0.04142.22 ▼1.33125.69 ▲6.98
Donate With Robokassa (DWR) /wp-admin/options-general.php?page=donate-with-robokassa1,1602.1860.4374.69
DWR Statistics /wp-admin/options-general.php?page=donate-with-robokassa-statistics1,0032.2353.9871.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_dwr_donations

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/donate-with-robokassa/donate-with-robokassa.php:38

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)
No browser issues were found


Plugin configuration 96% 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
2 plugin tags: robokassa, donation

donate-with-robokassa/donate-with-robokassa.php 92% from 13 tests

This is the main PHP file of "Donate With Robokassa" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The plugin description must be longer than 10 characters (currently 0 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin709 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PO File2110167166

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin