84% ceske-sluzby

Code Review | České služby pro WordPress

WordPress plugin České služby pro WordPress scored84%from 54 tests.

About plugin

  • Plugin page: ceske-sluzby
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2015
  • Latest release: Sep 16, 2016
  • Number of updates: 6
  • Update frequency: every 100.2 days
  • Top authors: pavelevap (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

2,000+ active /15,297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.07ms] Passed 4 tests

An overview of server-side resources used by České služby pro WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.18 ▲0.23
Dashboard /wp-admin3.32 ▲0.0148.31 ▼4.28
Posts /wp-admin/edit.php3.37 ▲0.0148.10 ▼0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.04 ▼4.99
Media Library /wp-admin/upload.php3.24 ▲0.0136.77 ▼2.60

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for České služby pro WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.28 ▲0.262.18 ▲0.0944.38 ▲0.82
Dashboard /wp-admin2,195 ▲155.55 ▼0.1087.56 ▼12.0741.14 ▼5.52
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0437.89 ▼3.9138.24 ▲0.38
Add New Post /wp-admin/post-new.php1,535 ▼418.54 ▲0.34616.46 ▼41.2478.56 ▲12.97
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.0197.87 ▼12.5843.31 ▼6.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/ceske-sluzby/ceske-sluzby.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ceske-sluzby/includes/class-ceske-sluzby-sledovani-zasilek.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/ceske-sluzby/includes/class-ceske-sluzby-ulozenka.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/ceske-sluzby/includes/class-ceske-sluzby-dpd-parcelshop.php:3

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Contributors: Contributors not specified
The official readme.txt is a good inspiration

ceske-sluzby/ceske-sluzby.php Passed 13 tests

The entry point to "České služby pro WordPress" version 0.5 is a PHP file that has certain tags in its header comment area
55 characters long description:
Implementace různých českých služeb do WordPressu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,596 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP133201593,567
JavaScript12329

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.78
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods47
▷ Static methods817.02%
▷ Public methods4595.74%
▷ Protected methods00.00%
▷ Private methods24.26%
Functions69
▷ Named functions69100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants550.00%
▷ Class constants550.00%
▷ Public constants5100.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
There are no PNG files in this plugin