78% woo-torob

Code Review | Woo Torob

WordPress plugin Woo Torob scored78%from 54 tests.

About plugin

  • Plugin page: woo-torob
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2019
  • Latest release: Dec 9, 2021
  • Number of updates: 10
  • Update frequency: every 86.7 days
  • Top authors: ee_persian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,803 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.00MB] [CPU: ▼11.65ms] Passed 4 tests

This is a short check of server-side resources used by Woo Torob
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0629.04 ▼14.58
Dashboard /wp-admin3.32 ▲0.0244.47 ▼7.49
Posts /wp-admin/edit.php3.37 ▲0.0248.96 ▲2.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.76 ▼25.50
Media Library /wp-admin/upload.php3.24 ▲0.0235.69 ▲0.99

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Woo Torob
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7414.48 ▲0.171.91 ▼0.1740.44 ▲0.06
Dashboard /wp-admin2,212 ▲214.86 ▼0.01105.73 ▲1.8445.50 ▲1.28
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0139.94 ▼0.2838.32 ▲6.88
Add New Post /wp-admin/post-new.php1,537 ▲2323.38 ▲5.97581.08 ▼60.3061.18 ▲12.66
Media Library /wp-admin/upload.php1,394 ▲124.22 ▲0.0496.65 ▼2.4645.69 ▲1.53
هماهنگ ساز تُرُب /wp-admin/woo-torob-help.php260.440.0914.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-torob/torob-engine.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-torob/woo-torob-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-torob/woo-torob.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/woo-torob-help.php
    • > Network (severe)
    wp-admin/woo-torob-help.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: dashboard, admin, woocommerce

woo-torob/woo-torob.php 92% from 13 tests

The main file in "Woo Torob" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 72 characters long)

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
Everything looks great! No dangerous files found in this plugin148 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3179126
CSS10022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
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.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/woo-torob-set-variable-product.png15.59KB15.86KB0.00%