83% woocommerce-cestina

Code Review | WooCommerce čeština

WordPress plugin WooCommerce čeština scored 83% from 54 tests.

About plugin

  • Plugin page: woocommerce-cestina
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Nov 19, 2012
  • Latest release: Aug 1, 2018
  • Number of updates: 47
  • Update frequency: every 44.3 days
  • Top authors: expres-web (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 11,970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼7.04ms] Passed 4 tests

Server-side resources used by WooCommerce čeština
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2243.96 ▼5.96
Dashboard /wp-admin3.58 ▲0.2749.95 ▼2.47
Posts /wp-admin/edit.php3.63 ▲0.2746.10 ▼4.37
Add New Post /wp-admin/post-new.php6.10 ▲0.2186.70 ▼15.34
Media Library /wp-admin/upload.php3.44 ▲0.2137.72 ▲1.49

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce čeština
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.071.62 ▼0.3443.10 ▼5.44
Dashboard /wp-admin2,206 ▲185.90 ▼0.14111.51 ▼5.5645.25 ▲0.53
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0236.07 ▼0.5432.78 ▼2.91
Add New Post /wp-admin/post-new.php1,533 ▼923.23 ▲4.88675.34 ▲20.3356.55 ▼15.99
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0397.84 ▼3.3441.97 ▼3.41

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_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PluginUpdateChecker_2_1' not found in wp-content/plugins/woocommerce-cestina/plugin-update-checker/github-checker.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woocommerce-cestina/info.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Přidat nový produkt), #2 (Přidat nový kupón), #3 (Nastavení WooCommerce)
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

woocommerce-cestina/woocommerce-cestina.php Passed 13 tests

The main PHP script in "WooCommerce čeština" version 2.5.2 is automatically included on every request by WordPress
68 characters long description:
Přeloží vybrané dodatkové pluginy pro WooCommerce do češtiny.

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
Good job! No executable or dangerous file extensions detected3,665 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP126887653,478
Markdown117080
CSS212449
JavaScript18539
JSON10019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity32.92
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity4.37
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods123
▷ Static methods108.13%
▷ Public methods6250.41%
▷ Protected methods5544.72%
▷ Private methods64.88%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.97MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png58.87KB60.89KB0.00%
img/bbc.png35.63KB13.52KB▼ 62.05%
screenshot-3.png55.55KB58.38KB0.00%
img/upme.png104.18KB34.12KB▼ 67.25%
img/suc.png131.22KB44.03KB▼ 66.44%