89% wc-nastavenia-skcz

Code Review | Nastavenia SK/CZ pre WooCommerce

WordPress plugin Nastavenia SK/CZ pre WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-nastavenia-skcz
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: Jun 9, 2018
  • Number of updates: 8
  • Update frequency: every 28.6 days
  • Top authors: kravco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,793 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼13.64ms] Passed 4 tests

Analyzing server-side resources used by Nastavenia SK/CZ pre WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0727.28 ▼19.19
Dashboard /wp-admin3.44 ▲0.0550.59 ▼19.52
Posts /wp-admin/edit.php3.55 ▲0.1655.25 ▲1.92
Add New Post /wp-admin/post-new.php6.02 ▲0.0991.59 ▼17.78
Media Library /wp-admin/upload.php3.36 ▲0.0939.19 ▲2.26

Server storage [IO: ▲0.02MB] [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_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Nastavenia SK/CZ pre WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,454 ▼30714.67 ▲0.020.46 ▼1.4017.17 ▼28.17
Dashboard /wp-admin2,198 ▲215.62 ▼0.1091.04 ▼2.6138.92 ▼4.48
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0041.97 ▲5.9436.45 ▲1.64
Add New Post /wp-admin/post-new.php1,529 ▲323.31 ▼0.31637.02 ▼46.3266.74 ▲5.40
Media Library /wp-admin/upload.php1,403 ▲34.27 ▲0.0999.48 ▲1.4347.65 ▲6.07

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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: These screenshots need descriptions #2, #3, #4, #5, #6, #7, #8, #9 in wc-nastavenia-skcz/assets to your readme.txt
The official readme.txt is a good inspiration

wc-nastavenia-skcz/wc-nastavenia-skcz.php 92% from 13 tests

"Nastavenia SK/CZ pre WooCommerce" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "3.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
There were no executable files found in this plugin409 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35090349
JavaScript11032
PO File16628

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity23.00
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods826.67%
▷ Public methods2273.33%
▷ Protected methods826.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin