Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.55MB] [CPU: ▲5.05ms] Passed 4 tests
An overview of server-side resources used by Democracy Poll
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 44.65 ▲4.06 |
Dashboard /wp-admin | 3.89 ▲0.58 | 51.13 ▼0.00 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 56.22 ▲4.71 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.52 | 108.98 ▲11.71 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 53.25 ▲11.43 |
Democracy Poll /wp-admin/options-general.php?page=democracy-poll | 3.74 | 32.69 |
Server storage [IO: ▲0.68MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_democracy_a |
wp_democracy_q |
wp_democracy_log |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
democracy_options |
democracy_css |
widget_democracy |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Democracy Poll: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 14.44 ▲0.41 | 2.36 ▲0.17 | 42.99 ▼0.31 |
Dashboard /wp-admin | 2,239 ▲48 | 4.83 ▼1.05 | 105.33 ▲0.03 | 41.18 ▼4.62 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.06 ▲0.03 | 44.56 ▲6.57 | 37.09 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,562 ▲43 | 20.47 ▼2.43 | 728.24 ▲76.67 | 64.58 ▲9.24 |
Media Library /wp-admin/upload.php | 1,421 ▲39 | 4.19 ▼0.01 | 113.95 ▲0.75 | 48.21 ▲1.12 |
Democracy Poll /wp-admin/options-general.php?page=democracy-poll | 1,272 | 2.30 | 34.51 | 36.92 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=democracy-poll
- > Notice in wp-content/plugins/democracy-poll/classes/Admin/Dem_List_Table_Polls.php+29
Undefined index: s
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=democracy-poll
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=democracy-poll
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 20 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=democracy-poll
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=democracy-poll
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Democracy_Poll' not found in wp-content/plugins/democracy-poll/classes/Admin/Democracy_Poll_Admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/democracy-poll/widget_democracy.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/democracy-poll/classes/Admin/Dem_List_Table_Logs.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/democracy-poll/classes/Admin/Dem_List_Table_Polls.php:3
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: You are using too many tags: 30 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== democracy-poll ===
)
democracy-poll/democracy.php 85% from 13 tests
"Democracy Poll" version 5.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("3.6" instead of "4.6")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("democracy-poll.php" instead of "democracy.php")
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 detected8,336 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 1,270 | 1,402 | 4,173 |
CSS | 28 | 220 | 110 | 1,842 |
PO File | 2 | 643 | 1,150 | 1,186 |
JavaScript | 5 | 231 | 131 | 665 |
SVG | 17 | 0 | 0 | 470 |
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.51 |
Average class complexity | 55.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 34 | 21.66% |
▷ Public methods | 124 | 78.98% |
▷ Protected methods | 10 | 6.37% |
▷ Private methods | 23 | 14.65% |
Functions | 52 | |
▷ Named functions | 34 | 65.38% |
▷ Anonymous functions | 18 | 34.62% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/country_flags/flags.png | 78.01KB | 25.86KB | ▼ 66.85% |
admin/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |