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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.18 ▲0.23 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.31 ▼4.28 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.10 ▼0.41 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.04 ▼4.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.28 ▲0.26 | 2.18 ▲0.09 | 44.38 ▲0.82 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.10 | 87.56 ▼12.07 | 41.14 ▼5.52 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.04 | 37.89 ▼3.91 | 38.24 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,535 ▼4 | 18.54 ▲0.34 | 616.46 ▼41.24 | 78.56 ▲12.97 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.01 | 97.87 ▼12.58 | 43.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 320 | 159 | 3,567 |
JavaScript | 1 | 2 | 3 | 29 |
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 code | 0.40 |
Average class complexity | 14.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 8 | 17.02% |
▷ Public methods | 45 | 95.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.26% |
Functions | 69 | |
▷ Named functions | 69 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 5 | 50.00% |
▷ Class constants | 5 | 50.00% |
▷ Public constants | 5 | 100.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