Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼143.48ms] Passed 4 tests
Server-side resources used by WP Cool Poll
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.24 | 29.27 ▲6.49 |
Dashboard /wp-admin | 3.19 ▲0.13 | 44.50 ▼4.86 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 47.73 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 95.55 ▼570.09 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 38.07 ▲0.56 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: 3 new tables, 1 new option
New tables |
---|
wp_cool_poll_votes |
wp_cool_poll_q |
wp_cool_poll_a |
New WordPress options |
---|
widget_cool_wid |
Browser metrics Passed 4 tests
Checking browser requirements for WP Cool Poll
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,727 ▲155 | 15.81 ▲0.16 | 10.55 ▼0.10 | 55.37 ▲4.69 |
Dashboard /wp-admin | 2,995 ▲61 | 5.86 ▼0.06 | 153.75 ▼32.26 | 127.37 ▲10.16 |
Posts /wp-admin/edit.php | 2,761 ▲25 | 2.68 ▲0.00 | 64.91 ▼5.80 | 94.43 ▼5.63 |
Add New Post /wp-admin/post-new.php | 1,698 ▲117 | 18.71 ▲4.31 | 369.18 ▼14.91 | 120.14 ▲4.52 |
Media Library /wp-admin/upload.php | 1,832 ▲22 | 5.04 ▲0.03 | 156.20 ▼6.21 | 131.25 ▼2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_cool_poll_votes
- wp_cool_poll_q
- wp_cool_poll_a
- Zombie WordPress options were found after uninstall: 1 option
- widget_cool_wid
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: id in wp-content/plugins/wp-cool-poll/poll_edit.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-cool-poll/poll_add.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-cool-poll/cool-poll.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-cool-poll/poll_search.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-cool-poll/poll_edit.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #1 (Example of poll in a widget) image required
wp-cool-poll/cool-poll.php 85% from 13 tests
The main PHP file in "WP Cool Poll" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-cool-poll.php" instead of "cool-poll.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,069 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 215 | 45 | 880 |
PO File | 2 | 67 | 70 | 172 |
JavaScript | 1 | 2 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 27 | |
▷ Static methods | 7 | 25.93% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/progress-grey.png | 0.66KB | 0.46KB | ▼ 30.96% |
imgs/progress-violet.png | 1.01KB | 0.93KB | ▼ 8.66% |
imgs/progress-yellow.png | 0.83KB | 0.57KB | ▼ 31.02% |
imgs/progress-green.png | 1.03KB | 0.74KB | ▼ 28.05% |
imgs/progress-orange.png | 1.09KB | 1.43KB | 0.00% |