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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.96 ▼1.61 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.42 ▼1.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.10 ▲0.49 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.68 ▼4.49 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.65 ▲4.83 |
Čeština: zalomení řádků /wp-admin/options-general.php?page=bozimediazalomeni | 3.31 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.24 ▼0.11 | 1.86 ▲0.24 | 44.14 ▼4.14 |
Dashboard /wp-admin | 2,201 ▲24 | 5.57 ▼0.00 | 86.26 ▼3.63 | 41.61 ▼1.23 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.97 ▲0.01 | 33.38 ▼3.09 | 35.83 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,534 ▼2 | 23.38 ▲0.06 | 653.07 ▼23.33 | 52.14 ▼6.76 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.18 ▼0.06 | 99.23 ▲2.52 | 41.98 ▼2.30 |
Čeština: zalomení řádků /wp-admin/options-general.php?page=bozimediazalomeni | 1,237 | 2.01 | 26.51 | 35.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 221 | 551 | 615 |
CSS | 2 | 20 | 6 | 69 |
JavaScript | 2 | 4 | 30 | 6 |
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 code | 0.16 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 5 | 14.71% |
▷ Public methods | 26 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 23.53% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 3 | 16.67% |
▷ Class constants | 15 | 83.33% |
▷ Public constants | 15 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/donate-button.png | 1.73KB | 1.80KB | 0.00% |