84% zalomeni

Code Review | Zalomení

WordPress plugin Zalomení scored84%from 54 tests.

About plugin

  • Plugin page: zalomeni
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 31, 2009
  • Latest release: Apr 6, 2023
  • Number of updates: 58
  • Update frequency: every 86.2 days
  • Top authors: honza.skypala (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

8,000+ active /31,816 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼11.04ms] Passed 4 tests

A check of server-side resources used by Zalomení
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.01 ▼0.88
Dashboard /wp-admin3.44 ▲0.0952.06 ▼16.30
Posts /wp-admin/edit.php3.55 ▲0.1950.50 ▼5.67
Add New Post /wp-admin/post-new.php6.02 ▲0.1390.20 ▼21.32
Media Library /wp-admin/upload.php3.36 ▲0.1336.74 ▼0.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 21 new options
New WordPress options
zalomeni_custom_terms
zalomeni_between_number_and_unit
zalomeni_prepositions
zalomeni_replacements
zalomeni_between_number_and_unit_list
zalomeni_space_between_numbers
zalomeni_version
zalomeni_abbreviations_list
db_upgraded
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for Zalomení
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.081.75 ▲0.1341.09 ▲1.02
Dashboard /wp-admin2,192 ▲185.65 ▲0.1390.55 ▼5.4140.34 ▼2.68
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0435.42 ▼7.1541.30 ▲3.61
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.15684.73 ▲10.7056.42 ▼6.12
Media Library /wp-admin/upload.php1,397 ▼64.21 ▲0.0399.62 ▼5.3643.27 ▼11.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 21 options
    • widget_recent-posts
    • theysaidso_admin_options
    • zalomeni_prepositions_list
    • db_upgraded
    • zalomeni_abbreviations_list
    • zalomeni_between_number_and_unit
    • zalomeni_between_number_and_unit_list
    • zalomeni_spaces_in_scales
    • zalomeni_replacements
    • zalomeni_space_after_ordered_number
    • ...

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)
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/zalomeni/zalomeni.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/zalomeni/zalomeni.php:17
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zalomeni/zalomeni.php on line 11
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/zalomeni/zalomeni.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: czech, grammar

zalomeni/zalomeni.php Passed 13 tests

The main PHP script in "Zalomení" version 1.5 is automatically included on every request by WordPress
87 characters long description:
Puts non-breakable space after one-letter Czech prepositions like 'k', 's', 'v' or 'z'.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin297 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14910297

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
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 complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods1062.50%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected