83% quatro-splatkovy-predaj

Code Review | Quatro splátkový predaj

WordPress plugin Quatro splátkový predaj scored83%from 54 tests.

About plugin

  • Plugin page: quatro-splatkovy-...
  • Plugin version: 2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2020
  • Latest release: Nov 3, 2023
  • Number of updates: 47
  • Update frequency: every 24.0 days
  • Top authors: eliasitsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.56ms] Passed 4 tests

This is a short check of server-side resources used by Quatro splátkový predaj
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.29 ▲2.46
Dashboard /wp-admin3.31 ▲0.0049.92 ▼1.88
Posts /wp-admin/edit.php3.36 ▲0.0048.59 ▼14.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.56 ▼10.10
Media Library /wp-admin/upload.php3.23 ▲0.0035.46 ▲0.24

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Quatro splátkový predaj
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.57 ▲0.331.80 ▲0.1944.31 ▲1.05
Dashboard /wp-admin2,195 ▲275.60 ▼0.0991.07 ▼9.1337.60 ▼7.70
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0140.18 ▲1.6035.32 ▼3.28
Add New Post /wp-admin/post-new.php1,404 ▼12217.80 ▼5.32631.49 ▼77.4148.05 ▼10.69
Media Library /wp-admin/upload.php1,400 ▲64.18 ▼0.0896.20 ▼7.8343.08 ▼2.46

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/quatro-splatkovy-predaj/includes/WpQuatroWooCommercePayment.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

quatro-splatkovy-predaj/wp-quatro.php 77% from 13 tests

This is the main PHP file of "Quatro splátkový predaj" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 247 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("quatro-splatkovy-predaj.php" instead of "wp-quatro.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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,327 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript115931,495
PHP616357713
CSS434119

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.67
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods327.27%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
22 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/msdropdown/icons/flagssprite_small.png70.15KB25.86KB▼ 63.14%
images/msdropdown/icons/browser-safari.png1.04KB1.07KB0.00%
images/old.I1093.png7.73KB2.87KB▼ 62.90%
images/bf.png5.44KB1.87KB▼ 65.67%
images/msdropdown/icons/Cash-56.png3.13KB1.93KB▼ 38.57%