90% robowoo

Code Review | RoboWoo — Robokassa payment gateway for WooCommerce

WordPress plugin RoboWoo — Robokassa payment gateway for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: robowoo
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Jul 23, 2018
  • Latest release: Nov 8, 2019
  • Number of updates: 12
  • Update frequency: every 39.5 days
  • Top authors: artamonoviv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,019 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.24ms] Passed 4 tests

A check of server-side resources used by RoboWoo — Robokassa payment gateway for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.00 ▼0.39
Dashboard /wp-admin3.31 ▲0.0045.61 ▼6.21
Posts /wp-admin/edit.php3.36 ▲0.0046.08 ▼1.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.14 ▼15.52
Media Library /wp-admin/upload.php3.23 ▲0.0031.91 ▼5.33

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for RoboWoo — Robokassa payment gateway for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.151.78 ▼0.4643.60 ▼2.94
Dashboard /wp-admin2,206 ▲184.83 ▼0.08110.84 ▼8.2539.92 ▼6.59
Posts /wp-admin/edit.php2,089 ▲31.97 ▼0.0440.98 ▲7.3735.11 ▲0.78
Add New Post /wp-admin/post-new.php1,542 ▲2818.27 ▲0.83617.85 ▼55.3959.11 ▲1.04
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0298.83 ▲0.6340.66 ▼2.59

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

robowoo/robowoo.php Passed 13 tests

The principal PHP file in "RoboWoo — Robokassa payment gateway for WooCommerce" v. 1.0.7 is loaded by WordPress automatically on each request
72 characters long description:
Provides a Robokassa gateway for WooCommerce. Supports russian law 54-FZ

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
No dangerous file extensions were detected604 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP117111604

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
robokassa.png13.53KB3.05KB▼ 77.44%