90% cloudkassir-for-woocommerce

Code Review | Cloudkassir for WooCommerce

WordPress plugin Cloudkassir for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: cloudkassir-for-w...
  • Plugin version: 2.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-6.1
  • WordPress version: 6.3.1
  • First release: Jan 29, 2020
  • Latest release: May 16, 2023
  • Number of updates: 22
  • Update frequency: every 54.7 days
  • Top authors: cpsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,356 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Cloudkassir for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.85 ▼6.26
Dashboard /wp-admin3.31 ▼0.0348.79 ▼12.75
Posts /wp-admin/edit.php3.36 ▲0.0149.83 ▼0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.64 ▼1.54
Media Library /wp-admin/upload.php3.24 ▲0.0136.33 ▲0.41

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Cloudkassir for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.16 ▼0.192.04 ▲0.3244.76 ▲1.15
Dashboard /wp-admin2,197 ▲175.54 ▼0.1293.81 ▼2.0841.11 ▼7.15
Posts /wp-admin/edit.php2,108 ▲81.95 ▼0.0440.22 ▲0.8737.35 ▲1.85
Add New Post /wp-admin/post-new.php1,431 ▼10622.44 ▲4.12539.29 ▼73.8931.27 ▼35.72
Media Library /wp-admin/upload.php1,399 ▼44.16 ▼0.05109.23 ▲6.6942.67 ▼0.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Настройки модуля settings.png)
The official readme.txt is a good inspiration

cloudkassir-for-woocommerce/cloudkassir-for-woocommerce.php Passed 13 tests

The entry point to "Cloudkassir for WooCommerce" version 2.3 is a PHP file that has certain tags in its header comment area
37 characters long description:
Extends WooCommerce with CloudKassir.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin480 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16415480

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
visa-mastercard.png0.66KB0.67KB0.00%