89% wsb-etomitreba

Code Review | WSB eTomitreba

WordPress plugin WSB eTomitreba scored89%from 54 tests.

About plugin

  • Plugin page: wsb-etomitreba
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Dec 28, 2022
  • Number of updates: 16
  • Update frequency: every 61.3 days
  • Top authors: branahr (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

40+ active /993 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 gracefully, with no errors

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

Server-side resources used by WSB eTomitreba
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0744.10 ▼3.43
Dashboard /wp-admin3.42 ▲0.0748.95 ▼2.35
Posts /wp-admin/edit.php3.53 ▲0.1349.86 ▼2.20
Add New Post /wp-admin/post-new.php6.00 ▲0.0789.90 ▼2.60
Media Library /wp-admin/upload.php3.34 ▲0.0738.42 ▲1.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

WSB eTomitreba: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.021.65 ▼0.6045.07 ▲3.50
Dashboard /wp-admin2,192 ▲125.57 ▲0.0489.24 ▼4.1742.81 ▲0.86
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0234.95 ▼5.7631.89 ▼4.20
Add New Post /wp-admin/post-new.php1,526 ▼023.41 ▲0.23683.95 ▼7.9156.89 ▼13.21
Media Library /wp-admin/upload.php1,403 ▲94.20 ▲0.05103.71 ▲0.9445.99 ▲1.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: woocommerce, etomitreba, payment gateway, rba

wsb-etomitreba/woocommerce-gateway-rbawsb.php 77% from 13 tests

The main file in "WSB eTomitreba" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "4.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("wsb-etomitreba.php" instead of "woocommerce-gateway-rbawsb.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin494 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24542387
PO File13638107

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/etomitreba-logo.png5.46KB2.66KB▼ 51.25%