Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-easy-poll/widget_poll.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; poll_widget has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼62.19ms] Passed 4 tests
This is a short check of server-side resources used by WP EASY POLL
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 4.82 ▼37.21 |
Dashboard /wp-admin | 2.13 ▼1.18 | 6.51 ▼54.81 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.20 ▼53.64 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.11 ▼103.10 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 5.60 ▼27.26 |
Poll details /wp-admin/admin.php?page=wp-easy-poll/poll_admin.php/show_poll | 2.13 | 6.09 |
Add poll /wp-admin/admin.php?page=wp-easy-poll | 2.13 | 6.71 |
Publish poll /wp-admin/admin.php?page=wp-easy-poll/poll_admin.php/includes | 2.13 | 5.42 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_poll_answer_result |
wp_poll_question |
wp_poll_answer |
New WordPress options |
---|
theysaidso_admin_options |
widget_poll_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP EASY POLL
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.35 ▼0.36 | 2.06 ▲0.37 | 41.29 ▼1.67 |
Dashboard /wp-admin | 2,226 ▲49 | 5.61 ▼0.08 | 91.98 ▲1.16 | 41.67 ▲6.26 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.98 ▼0.13 | 40.38 ▲1.64 | 35.06 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.06 ▲0.01 | 669.02 ▼50.40 | 57.87 ▼0.64 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.20 ▼0.15 | 99.54 ▼10.06 | 41.64 ▼5.45 |
Poll details /wp-admin/admin.php?page=wp-easy-poll/poll_admin.php/show_poll | 829 | 2.03 | 24.53 | 26.53 |
Add poll /wp-admin/admin.php?page=wp-easy-poll | 911 | 2.00 | 25.81 | 25.01 |
Publish poll /wp-admin/admin.php?page=wp-easy-poll/poll_admin.php/includes | 797 | 2.03 | 24.45 | 26.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-easy-poll/widget_poll.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; poll_widget has a deprecated constructor
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_poll_answer_result
- wp_poll_question
- wp_poll_answer
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_poll_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-easy-poll/poll_admin.php/includes
- > Deprecated in wp-content/plugins/wp-easy-poll/widget_poll.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; poll_widget has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-easy-poll/poll_admin.php/includes
- > Deprecated in wp-content/plugins/wp-easy-poll/widget_poll.php+240
Function create_function() is deprecated
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-easy-poll/poll_admin.php/includes
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in poll_widget is deprecated since version 4.3.0! Use __construct() instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-easy-poll/poll_admin.php/includes
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
SRP 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-easy-poll/display_widget_form.php
- > /wp-content/plugins/wp-easy-poll/display_page_form.php
- > /wp-content/plugins/wp-easy-poll/wp_menu.php
- 28× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-easy-poll/show_poll/backend_show_poll_result.php on line 4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-easy-poll/includes/show_poll.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-easy-poll/includes/show_poll.php:7
- > PHP Notice
Undefined variable: question in wp-content/plugins/wp-easy-poll/display_widget_form.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-poll/frontend_poll_process.php:2
- > PHP Notice
Undefined variable: random_number in wp-content/plugins/wp-easy-poll/display_widget_form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_sql() in wp-content/plugins/wp-easy-poll/includes/del_poll.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-easy-poll/show_poll/backend_show_poll_result.php:8
- > PHP Notice
Undefined variable: ques in wp-content/plugins/wp-easy-poll/display_page_form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-poll/tiny_mce_button.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
wp-easy-poll/poll_admin.php 92% from 13 tests
The principal PHP file in "WP EASY POLL" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-easy-poll.php" instead of "poll_admin.php")
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
Everything looks great! No dangerous files found in this plugin1,724 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 827 | 80 | 1,608 |
CSS | 1 | 26 | 6 | 79 |
JavaScript | 2 | 8 | 4 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 13.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tick.png | 5.83KB | 1.82KB | ▼ 68.78% |
voting_poll.png | 39.29KB | 16.12KB | ▼ 58.98% |
includes/voting_poll.png | 39.29KB | 16.12KB | ▼ 58.98% |
bar2.png | 2.77KB | 0.10KB | ▼ 96.36% |
bar.png | 2.79KB | 0.13KB | ▼ 95.39% |