78% cestina-zalomeni-radku

Code Review | Čeština: zalomení řádků

WordPress plugin Čeština: zalomení řádků scored78%from 54 tests.

About plugin

  • Plugin page: cestina-zalomeni-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.1
  • WordPress version: 6.3.1
  • First release: May 2, 2019
  • Latest release: Mar 27, 2023
  • Number of updates: 18
  • Update frequency: every 79.2 days
  • Top authors: marekvratil (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

4,000+ active /8,987 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.68ms] Passed 4 tests

A check of server-side resources used by Čeština: zalomení řádků
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.96 ▼1.61
Dashboard /wp-admin3.33 ▲0.0346.42 ▼1.09
Posts /wp-admin/edit.php3.38 ▲0.0344.10 ▲0.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.68 ▼4.49
Media Library /wp-admin/upload.php3.25 ▲0.0235.65 ▲4.83
Čeština: zalomení řádků /wp-admin/options-general.php?page=bozimediazalomeni3.3137.51

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 21 new options
New WordPress options
bozimediazalomeni_between_number_and_unit
bozimediazalomeni_replacements
bozimediazalomeni_between_number_and_unit_list
bozimediazalomeni_acf_the_content
widget_recent-comments
bozimediazalomeni_space_between_numbers
bozimediazalomeni_abbreviations
theysaidso_admin_options
bozimediazalomeni_abbreviations_list
bozimediazalomeni_prepositions_list
...

Browser metrics Passed 4 tests

A check of browser resources used by Čeština: zalomení řádků
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.24 ▼0.111.86 ▲0.2444.14 ▼4.14
Dashboard /wp-admin2,201 ▲245.57 ▼0.0086.26 ▼3.6341.61 ▼1.23
Posts /wp-admin/edit.php2,106 ▲61.97 ▲0.0133.38 ▼3.0935.83 ▲1.31
Add New Post /wp-admin/post-new.php1,534 ▼223.38 ▲0.06653.07 ▼23.3352.14 ▼6.76
Media Library /wp-admin/upload.php1,406 ▲124.18 ▼0.0699.23 ▲2.5241.98 ▼2.30
Čeština: zalomení řádků /wp-admin/options-general.php?page=bozimediazalomeni1,2372.0126.5135.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cestina-zalomeni-radku/public/partials/bozimediazalomeni-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/cestina-zalomeni-radku/admin/partials/bozimediazalomeni-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: etina, tvrd mezera, gramatika, zalamovn, spisovn etina...

cestina-zalomeni-radku/bozimediazalomeni.php 85% from 13 tests

The main PHP file in "Čeština: zalomení řádků" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cestina-zalomeni-radku.php" instead of "bozimediazalomeni.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected690 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12221551615
CSS220669
JavaScript24306

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.86
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods514.71%
▷ Public methods2676.47%
▷ Protected methods00.00%
▷ Private methods823.53%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants316.67%
▷ Class constants1583.33%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/donate-button.png1.73KB1.80KB0.00%