Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.23MB] [CPU: ▲5.66ms] 75% from 4 tests
An overview of server-side resources used by Crowdsignal Dashboard - Polls, Surveys & more
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 8,682.83ms on /wp-admin/options-general.php?page=crowdsignal-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.70 ▲1.23 | 50.89 ▲8.82 |
Dashboard /wp-admin | 4.54 ▲1.23 | 53.70 ▲3.48 |
Posts /wp-admin/edit.php | 4.65 ▲1.29 | 63.27 ▲5.30 |
Add New Post /wp-admin/post-new.php | 7.12 ▲1.23 | 99.37 ▲5.04 |
Media Library /wp-admin/upload.php | 4.46 ▲1.23 | 51.70 ▲20.60 |
Ratings /wp-admin/options-general.php?page=ratingsettings | 4.49 | 5,914.32 |
Ratings /wp-admin/edit.php?post_type=feedback&page=ratings | 4.46 | 3,849.63 |
Crowdsignal /wp-admin/edit.php?post_type=feedback&page=polls | 4.50 | 6,743.33 |
Crowdsignal /wp-admin/options-general.php?page=crowdsignal-settings | 4.52 | 8,682.83 |
Server storage [IO: ▲7.54MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 226 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_pd_top_rated |
crowdsignal_api_key_secret |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Crowdsignal Dashboard - Polls, Surveys & more
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲88 | 14.23 ▼0.15 | 1.72 ▼0.02 | 43.42 ▼1.37 |
Dashboard /wp-admin | 2,258 ▲84 | 5.64 ▲0.12 | 95.83 ▼5.85 | 42.21 ▼2.15 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 2.00 ▲0.06 | 38.54 ▼5.75 | 35.86 ▼7.47 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.17 ▲0.08 | 668.21 ▲77.43 | 56.70 ▲9.13 |
Media Library /wp-admin/upload.php | 1,455 ▲58 | 4.18 ▼0.09 | 98.83 ▲0.53 | 42.26 ▲1.56 |
Ratings /wp-admin/options-general.php?page=ratingsettings | 820 | 5.65 | 130.91 | 22.66 |
Ratings /wp-admin/edit.php?post_type=feedback&page=ratings | 901 | 6.18 | 57.93 | 21.84 |
Crowdsignal /wp-admin/edit.php?post_type=feedback&page=polls | 1,227 | 6.48 | 64.44 | 59.13 |
Crowdsignal /wp-admin/options-general.php?page=crowdsignal-settings | 1,019 | 6.08 | 55.26 | 45.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- widget_pd_top_rated
- db_upgraded
- can_compress_scripts
- crowdsignal_api_key_secret
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/polldaddy/polldaddy-org.php
- > /wp-content/plugins/polldaddy/partials/errors.php
- > /wp-content/plugins/polldaddy/rating.php
- > /wp-content/plugins/polldaddy/polldaddy-shortcode.php
- > /wp-content/plugins/polldaddy/popups.php
- > /wp-content/plugins/polldaddy/ajax.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/polldaddy/polldaddy.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/polldaddy/partials/settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/polldaddy/partials/crowdsignal-landing-page.php:14
- > PHP Notice
Undefined variable: error_codes in wp-content/plugins/polldaddy/partials/errors.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/polldaddy/partials/api-key-page.php:9
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/polldaddy/partials/errors.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/polldaddy/partials/polls-table.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/polldaddy/partials/poll-edit-form.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/polldaddy/partials/settings-2.php:10
- > 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 97% from 29 tests
readme.txt 94% 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: Please delete some tags, you are using 11 tag instead of maximum 10
polldaddy/polldaddy.php Passed 13 tests
"Crowdsignal Dashboard - Polls, Surveys & more" version 3.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Create and manage Crowdsignal polls and ratings in WordPress
Code Analysis 97% from 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
No dangerous file extensions were detected48,462 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 37 | 16,967 | 117 | 38,139 |
PHP | 22 | 1,409 | 495 | 8,814 |
CSS | 4 | 204 | 11 | 1,211 |
SVG | 14 | 0 | 3 | 249 |
JavaScript | 7 | 9 | 1 | 49 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 212)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 624.00 |
Average method complexity | 8.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 212.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 57 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 1 | 0.80% |
▷ Public methods | 120 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
90 compressed PNG files occupy 0.98MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/polldaddy.png | 0.74KB | 0.72KB | ▼ 1.46% |
img/st-thinking-female.png | 20.36KB | 20.32KB | 0.19% |
img/st-tech-light.png | 11.83KB | 11.78KB | 0.49% |
img/star-yellow-sml@2x.png | 8.02KB | 3.28KB | ▼ 59.04% |
img/st-plastic-grey.png | 13.20KB | 12.69KB | ▼ 3.84% |