Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/pro-polls/pro-polls.php+63
Undefined variable: deps
Server metrics [RAM: ▼1.79MB] [CPU: ▼47.78ms] Passed 4 tests
A check of server-side resources used by Pro Polls
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 6.57 ▼35.67 |
Dashboard /wp-admin | 2.21 ▼1.09 | 11.02 ▼37.99 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 8.37 ▼36.97 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.67 | 7.43 ▼80.48 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 6.58 ▼27.46 |
/wp-admin/edit.php?post_type=pro-poll&page=pro-polls-results | 2.21 | 7.15 |
Add New Poll /wp-admin/post-new.php?post_type=pro-poll | 2.21 | 6.66 |
/wp-admin/edit.php?post_type=pro-poll&page=pro-polls-questions | 2.21 | 7.96 |
All Polls /wp-admin/edit.php?post_type=pro-poll | 2.21 | 8.05 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_pro_polls_results |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
pro_polls_db_version |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pro Polls
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 14.44 ▲0.24 | 1.77 ▲0.02 | 44.04 ▼4.64 |
Dashboard /wp-admin | 2,242 ▲51 | 4.85 ▼1.03 | 97.05 ▼19.52 | 38.50 ▼4.76 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.01 ▲0.02 | 40.46 ▲1.86 | 36.00 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,569 ▲49 | 18.20 ▼5.22 | 582.49 ▼93.79 | 66.49 ▲14.61 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.22 ▲0.01 | 99.58 ▼6.73 | 43.23 ▲2.13 |
/wp-admin/edit.php?post_type=pro-poll&page=pro-polls-results | 691 | 1.35 | 6.71 | 17.79 |
Add New Poll /wp-admin/post-new.php?post_type=pro-poll | 1,458 | 2.50 | 50.23 | 48.37 |
/wp-admin/edit.php?post_type=pro-poll&page=pro-polls-questions | 691 | 1.14 | 6.70 | 13.40 |
All Polls /wp-admin/edit.php?post_type=pro-poll | 1,110 | 1.93 | 33.18 | 28.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/pro-polls/pro-polls.php+63
Undefined variable: deps
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_pro_polls_results
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- pro_polls_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pro-poll
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/pro-polls/pro-polls.php+63
Undefined variable: deps
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pro-poll
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/pro-polls/pro-polls.php+63
Undefined variable: ver
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pro-poll
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/pro-polls/pro-polls.php+63
Undefined variable: media
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pro-poll
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pro_polls_styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pro-poll&page=pro-polls-questions
- > Notice in wp-content/plugins/pro-polls/pro-polls-admin-html.php+21
Undefined index: poll_id
SRP 50% 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 items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/pro-polls/classes/classes_list_questions.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/pro-polls/classes/classes_results.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pro-polls/pro-polls.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Polls Listing), #2 (Adding questions to polls), #3 (Polls on the front end)
pro-polls/pro-polls.php Passed 13 tests
The main file in "Pro Polls" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
21 characters long description:
Multi Question Polls.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin935 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 197 | 172 | 896 |
CSS | 1 | 1 | 0 | 39 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
4 PNG files occupy 0.27MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 40.13KB | 19.28KB | ▼ 51.96% |
screenshot-1.png | 33.99KB | 17.59KB | ▼ 48.25% |
screenshot-2.png | 39.09KB | 18.98KB | ▼ 51.45% |
screenshot-4.png | 161.43KB | 44.21KB | ▼ 72.61% |