Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼8.07ms] Passed 4 tests
A check of server-side resources used by Poll Maker - Best WordPress Poll Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 38.03 ▼6.86 |
Dashboard /wp-admin | 3.68 ▲0.33 | 47.41 ▼14.56 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 50.99 ▲4.19 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 79.38 ▼14.99 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 40.16 ▲4.12 |
Server storage [IO: ▲7.24MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 206 new files
Database: 5 new tables, 10 new options
New tables |
---|
wp_ayspoll_categories |
wp_ayspoll_reports |
wp_ayspoll_polls |
wp_ayspoll_answers |
wp_ayspoll_settings |
New WordPress options |
---|
ays_poll_maker_poll_creation_challange |
widget_recent-posts |
widget_poll_maker_ays |
ays_poll_maker_first_time_activation |
widget_theysaidso_widget |
ays_poll_db_version |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Poll Maker - Best WordPress Poll Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,555 ▼1,192 | 10.14 ▼4.11 | 1.64 ▼0.19 | 24.66 ▼16.66 |
Dashboard /wp-admin | 2,261 ▲83 | 5.65 ▼0.07 | 98.88 ▼9.78 | 90.88 ▲46.73 |
Posts /wp-admin/edit.php | 2,184 ▲84 | 2.04 ▲0.08 | 39.27 ▲0.97 | 37.25 ▼0.43 |
Add New Post /wp-admin/post-new.php | 6,448 ▲4,922 | 28.12 ▲5.01 | 877.48 ▲243.92 | 34.72 ▼16.36 |
Media Library /wp-admin/upload.php | 1,478 ▲78 | 4.22 ▲0.03 | 96.33 ▼2.37 | 76.00 ▲33.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_poll_maker_ays
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/poll-maker/public/partials/poll-maker-ays-public-display.php
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/poll-maker/admin/partials/categories/actions/poll-maker-ays-categories-actions.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/poll-maker/admin/partials/features/poll-maker-how-to-use-display.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/poll-maker/admin/partials/features/poll-maker-featured-display.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/poll-maker/admin/partials/results/poll-maker-ays-each-results-display.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/poll-maker/admin/partials/features/poll-maker-formfields_page-display.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/poll-maker/includes/lists/class-poll-maker-each-results-poll-list-table.php:4
- > PHP Fatal error
Uncaught Error: Class 'Poll_Maker_Ays_Admin' not found in wp-content/plugins/poll-maker/admin/partials/poll-maker-ays-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/poll-maker/widgets/poll-maker-ays-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/poll-maker/admin/partials/poll-maker-ays-polls-actions.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/poll-maker/includes/lists/class-poll-maker-results-list-table.php:4
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #10 in poll-maker/assets to your readme.txt
poll-maker/poll-maker-ays.php 85% from 13 tests
This is the main PHP file of "Poll Maker - Best WordPress Poll Plugin" version 4.9.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("poll-maker.php" instead of "poll-maker-ays.php")
Code Analysis 95% 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
Everything looks great! No dangerous files found in this plugin53,097 lines of code in 98 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 7,502 | 10,737 | 20,528 |
PHP | 34 | 2,086 | 1,669 | 19,748 |
JavaScript | 19 | 792 | 642 | 7,052 |
CSS | 15 | 1,391 | 1,652 | 5,669 |
SVG | 23 | 6 | 4 | 100 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,036)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 606)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 120.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,036.00 |
Average method complexity | 7.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 606.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 307 | |
▷ Static methods | 51 | 16.61% |
▷ Public methods | 292 | 95.11% |
▷ Protected methods | 6 | 1.95% |
▷ Private methods | 9 | 2.93% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
68 PNG files occupy 1.54MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icons/icon-sccp-128x128.png | 1.18KB | 1.18KB | 0.00% |
admin/images/themes/ClassicLight.png | 9.08KB | 3.63KB | ▼ 60.04% |
admin/images/avatars/business_avatar.png | 19.09KB | 7.27KB | ▼ 61.93% |
admin/images/themes/LightShape.png | 8.08KB | 3.66KB | ▼ 54.74% |
admin/images/themes/ClassicDark.png | 8.36KB | 3.79KB | ▼ 54.60% |