Benchmarks
Plugin footprint 65% 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: ▼1.19MB] [CPU: ▼44.50ms] Passed 4 tests
Server-side resources used by WP Open Votomat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.84 ▼39.56 |
Dashboard /wp-admin | 3.06 ▼0.25 | 15.74 ▼31.43 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 17.43 ▼32.29 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 16.81 ▼74.73 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 16.06 ▼18.99 |
Parties /wp-admin/edit.php?post_type=wpov-party | 3.06 | 17.54 |
Questions /wp-admin/edit.php?post_type=wpov-question | 3.06 | 16.71 |
Dashboard /wp-admin/admin.php?page=wpov-dashboard | 3.06 | 16.45 |
Votings /wp-admin/edit.php?post_type=wpov-voting | 3.06 | 18.55 |
Settings /wp-admin/admin.php?page=wpov-settings | 3.06 | 15.49 |
Server storage [IO: ▲7.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,264 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Open Votomat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲135 | 13.88 ▼0.47 | 17.01 ▲15.08 | 30.65 ▼16.21 |
Dashboard /wp-admin | 2,254 ▲63 | 5.86 ▲0.99 | 105.81 ▲4.53 | 37.65 ▼5.11 |
Posts /wp-admin/edit.php | 2,143 ▲51 | 2.07 ▲0.08 | 40.09 ▼3.77 | 35.00 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 22.70 ▼0.55 | 660.89 ▼16.81 | 68.07 ▲19.06 |
Media Library /wp-admin/upload.php | 1,439 ▲51 | 4.30 ▲0.13 | 105.63 ▼7.90 | 47.51 ▼1.04 |
Parties /wp-admin/edit.php?post_type=wpov-party | 1,146 | 2.00 | 45.76 | 29.73 |
Questions /wp-admin/edit.php?post_type=wpov-question | 1,132 | 1.96 | 32.99 | 28.95 |
Dashboard /wp-admin/admin.php?page=wpov-dashboard | 856 | 2.41 | 32.14 | 26.01 |
Votings /wp-admin/edit.php?post_type=wpov-voting | 1,139 | 2.05 | 33.92 | 29.06 |
Settings /wp-admin/admin.php?page=wpov-settings | 2,221 | 8.73 | 168.11 | 72.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-open-votomat/includes/admin/admin.php+314
Undefined index: post_type
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpov-settings
- > Notice in wp-content/plugins/wp-open-votomat/includes/admin/admin.php+316
Undefined index: post
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpov-settings
- > Notice in wp-content/plugins/wp-open-votomat/includes/admin/admin.php+314
Undefined index: post_type
- > GET request to /wp-admin/admin.php?page=wpov-dashboard
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpov_admin_options_dashboard::add_page() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpov-voting
- > Notice in wp-content/plugins/wp-open-votomat/includes/admin/post_type-voting.php+135
Undefined variable: fields
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpov-voting
- > Notice in wp-content/plugins/wp-open-votomat/includes/admin/post_type-voting.php+232
Undefined variable: prefix
- > GET request to /wp-admin/admin.php?page=wpov-settings
- > Notice in wp-content/plugins/wp-open-votomat/includes/admin/options.php+168
Undefined property: wpov_admin_options_settings::$key
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpov-settings
- > Notice in wp-content/plugins/wp-open-votomat/includes/admin/options.php+120
Undefined index: key
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-open-votomat/wp-open-votomat.php
- > /wp-content/plugins/wp-open-votomat/vendor/cmb2/apigen/hook-docs.php
- 317× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-open-votomat/vendor/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-open-votomat/vendor/cmb2/includes/helper-functions.php:131
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-open-votomat/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-open-votomat/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Asm89\\Twig\\CacheExtension\\Exception\\BaseException' not found in wp-content/plugins/wp-open-votomat/vendor/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/Exception/NonExistingStrategyException.php:14
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-open-votomat/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Timber\\User' not found in wp-content/plugins/wp-open-votomat/vendor/timber/timber/lib/Integrations/CoAuthorsPlusUser.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-open-votomat/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/wp-open-votomat/vendor/twig/twig/src/Node/Expression/Binary/NotEqualBinary.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-open-votomat/vendor/cmb2/init.php:126
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wpov-settings
- > Network (severe)
wp-content/themes/twentytwentyone/css/theme_options.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
No plugin tags provided
wp-open-votomat/wp-open-votomat.php 92% from 13 tests
The main file in "WP Open Votomat" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin113,276 lines of code in 1,051 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 611 | 8,286 | 16,481 | 34,250 |
PO File | 121 | 14,452 | 18,668 | 32,665 |
JavaScript | 26 | 5,686 | 5,380 | 27,086 |
CSS | 20 | 1,908 | 1,390 | 9,847 |
JSON | 10 | 0 | 0 | 4,531 |
Markdown | 26 | 765 | 0 | 2,224 |
Sass | 16 | 300 | 25 | 1,379 |
Twig | 20 | 87 | 4 | 762 |
SVG | 184 | 0 | 0 | 184 |
YAML | 9 | 32 | 2 | 183 |
XML | 7 | 22 | 43 | 156 |
reStructuredText | 1 | 5 | 1 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 7.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 19 | |
Traits | 0 | |
Classes | 583 | |
▷ Abstract classes | 25 | 4.29% |
▷ Concrete classes | 558 | 95.71% |
▷ Final classes | 49 | 8.78% |
Methods | 2,242 | |
▷ Static methods | 330 | 14.72% |
▷ Public methods | 1,885 | 84.08% |
▷ Protected methods | 268 | 11.95% |
▷ Private methods | 89 | 3.97% |
Functions | 199 | |
▷ Named functions | 161 | 80.90% |
▷ Anonymous functions | 38 | 19.10% |
Constants | 85 | |
▷ Global constants | 19 | 22.35% |
▷ Class constants | 66 | 77.65% |
▷ Public constants | 66 | 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
34 compressed PNG files occupy 1.27MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/screenshot-3.png | 102.32KB | 99.88KB | ▼ 2.39% |
vendor/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |