90% itg-rztka

Code Review | IT Guild Rozetka.ua Woocommerce Integration

WordPress plugin IT Guild Rozetka.ua Woocommerce Integration scored90%from 54 tests.

About plugin

  • Plugin page: itg-rztka
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.2
  • WordPress version: 6.3.1
  • First release: May 27, 2019
  • Latest release: Jan 24, 2020
  • Number of updates: 11
  • Update frequency: every 22.1 days
  • Top authors: itguild (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /1,074 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.60ms] Passed 4 tests

This is a short check of server-side resources used by IT Guild Rozetka.ua Woocommerce Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.22 ▼10.20
Dashboard /wp-admin3.39 ▲0.0946.10 ▼0.16
Posts /wp-admin/edit.php3.44 ▲0.0951.65 ▲2.00
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.19 ▼17.14
Media Library /wp-admin/upload.php3.31 ▲0.0835.18 ▲1.09

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for IT Guild Rozetka.ua Woocommerce Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.25 ▼1.153.82 ▲1.7537.55 ▼7.68
Dashboard /wp-admin2,225 ▲345.05 ▼0.85112.27 ▲12.3944.04 ▲3.17
Posts /wp-admin/edit.php2,108 ▲191.97 ▼0.0339.45 ▼2.1235.92 ▼1.33
Add New Post /wp-admin/post-new.php1,546 ▲1323.03 ▼0.14664.69 ▼13.3152.96 ▼0.85
Media Library /wp-admin/upload.php1,404 ▲194.20 ▲0.0492.82 ▼17.5240.10 ▼13.12

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
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
There were no browser issues found

Optimizations

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
4 plugin tags: feed, woocommerce, rozetkaua, rozetka

itg-rztka/itg-rztka.php 92% from 13 tests

Analyzing the main PHP file in "IT Guild Rozetka.ua Woocommerce Integration" version 1.2
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0.0")

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 plugin588 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29364411
PO File26466177

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin