90% edd-robokassa-lite

Code Review | Gateway for Robokassa and Easy Digital Downloads Lite

WordPress plugin Gateway for Robokassa and Easy Digital Downloads Lite scored90%from 54 tests.

About plugin

  • Plugin page: edd-robokassa-lite
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5
  • WordPress version: 6.3.1
  • First release: Aug 12, 2020
  • Latest release: Aug 12, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: aleksandrx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /529 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.78ms] Passed 4 tests

Analyzing server-side resources used by Gateway for Robokassa and Easy Digital Downloads Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0736.36 ▼8.92
Dashboard /wp-admin3.42 ▲0.0748.83 ▼1.90
Posts /wp-admin/edit.php3.53 ▲0.1346.89 ▼1.88
Add New Post /wp-admin/post-new.php6.00 ▲0.0785.97 ▼18.43
Media Library /wp-admin/upload.php3.34 ▲0.0737.12 ▼1.88

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Gateway for Robokassa and Easy Digital Downloads Lite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.73 ▲0.441.77 ▼0.4840.92 ▼1.17
Dashboard /wp-admin2,198 ▲185.62 ▲0.0185.74 ▼10.1438.97 ▼3.78
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0436.35 ▼3.4833.50 ▼3.75
Add New Post /wp-admin/post-new.php1,528 ▼923.14 ▲4.89667.65 ▲3.1261.54 ▼16.76
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.07100.44 ▼9.6845.72 ▼6.07

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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 everything seems fine, this is not 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

edd-robokassa-lite/edd-robokassa-lite.php Passed 13 tests

The entry point to "Gateway for Robokassa and Easy Digital Downloads Lite" version 1.0 is a PHP file that has certain tags in its header comment area
36 characters long description:
Adds a payment gateway for Robokassa

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
Success! There were no dangerous files found in this plugin460 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1109142324
PO File14646136

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
rb_icon.png4.77KB1.84KB▼ 61.48%