Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-page.php+53
Undefined index: overlay_aktivieren
Server metrics [RAM: ▼1.67MB] [CPU: ▼54.24ms] Passed 4 tests
An overview of server-side resources used by Corona Zahlen in Deutschland
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.14 | 9.01 ▼30.60 |
Dashboard /wp-admin | 2.34 ▼0.96 | 10.05 ▼44.51 |
Posts /wp-admin/edit.php | 2.34 ▼1.01 | 12.05 ▼41.78 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 10.37 ▼100.08 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 11.43 ▼27.10 |
Overlay /wp-admin/admin.php?page=overlay | 2.34 | 8.96 |
Shortcode /wp-admin/admin.php?page=shortcode | 2.34 | 11.32 |
CNG Einstellungen /wp-admin/admin.php?page=cng_einstellungen | 2.34 | 9.08 |
Widget /wp-admin/admin.php?page=widget | 2.34 | 10.64 |
Auto-Insert /wp-admin/admin.php?page=auto_insert | 2.34 | 10.54 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_cng-widget |
coronaNumbersGermany |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Corona Zahlen in Deutschland
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 13.32 ▼1.04 | 5.47 ▲3.82 | 43.58 ▲2.66 |
Dashboard /wp-admin | 2,260 ▲59 | 4.84 ▼0.10 | 106.27 ▼12.78 | 42.02 ▼1.16 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.04 ▼0.00 | 41.18 ▲3.34 | 34.51 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,576 ▲36 | 23.12 ▲4.92 | 661.76 ▲2.04 | 59.20 ▼7.50 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.20 ▼0.11 | 108.28 ▲3.55 | 44.43 ▼6.25 |
Overlay /wp-admin/admin.php?page=overlay | 870 | 2.03 | 29.87 | 27.99 |
Shortcode /wp-admin/admin.php?page=shortcode | 847 | 2.02 | 23.41 | 23.27 |
CNG Einstellungen /wp-admin/admin.php?page=cng_einstellungen | 842 | 2.06 | 22.66 | 25.21 |
Widget /wp-admin/admin.php?page=widget | 845 | 2.04 | 25.31 | 28.91 |
Auto-Insert /wp-admin/admin.php?page=auto_insert | 875 | 2.03 | 26.16 | 28.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-page.php+53
Undefined index: overlay_aktivieren
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- db_upgraded
- coronaNumbersGermany
- widget_theysaidso_widget
- widget_recent-comments
- widget_cng-widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto_insert
- > Notice in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-page.php+53
Undefined index: overlay_aktivieren
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=auto_insert
- > Notice in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-page.php+62
Undefined index: overlay_ausrichten
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 items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-shortcode.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-overlay.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-overlay.php:4
- > PHP Fatal error
Uncaught Error: Class 'CNG_ABSTRACT' not found in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-autoinsert.php:2
- > PHP Fatal error
Uncaught Error: Class 'CNG_ABSTRACT' not found in wp-content/plugins/corona-zahlen-deutschland-cng/inc/cng-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 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
10 plugin tags: coronavirus, sars-cov-2, corona, pandemic, corona update...
corona-zahlen-deutschland-cng/index.php 92% from 13 tests
The main PHP script in "Corona Zahlen in Deutschland" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("corona-zahlen-deutschland-cng.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,624 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 162 | 187 | 1,173 |
Markdown | 1 | 46 | 0 | 309 |
CSS | 3 | 16 | 0 | 131 |
JavaScript | 1 | 1 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 26.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 5.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 65.12% |
▷ Protected methods | 12 | 27.91% |
▷ Private methods | 3 | 6.98% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin