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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.01 ▼0.88 |
Dashboard /wp-admin | 3.44 ▲0.09 | 52.06 ▼16.30 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 50.50 ▼5.67 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 90.20 ▼21.32 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▲0.08 | 1.75 ▲0.13 | 41.09 ▲1.02 |
Dashboard /wp-admin | 2,192 ▲18 | 5.65 ▲0.13 | 90.55 ▼5.41 | 40.34 ▼2.68 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.04 | 35.42 ▼7.15 | 41.30 ▲3.61 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.04 ▼0.15 | 684.73 ▲10.70 | 56.42 ▼6.12 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.21 ▲0.03 | 99.62 ▼5.36 | 43.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 10 | 297 |
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 code | 0.33 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 10 | 62.50% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.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