Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/cp-polls/classes/cp-base-class.inc.php+115
Trying to get property 'form_structure' of non-object
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.32ms] Passed 4 tests
Analyzing server-side resources used by Polls CP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.18 ▲5.35 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.50 ▲0.86 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.62 ▲1.84 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.31 ▼4.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.76 ▲0.14 |
Upgrade /wp-admin/admin.php?page=CP_Polls_upgrade | 3.20 | 30.40 |
CP Polls /wp-admin/options-general.php?page=CP_Polls | 3.39 | 35.26 |
CP Polls /wp-admin/admin.php?page=CP_Polls | 3.23 | 35.39 |
Server storage [IO: ▲0.57MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 70 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_cppolls_forms |
wp_cppolls_messages |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
autoptimize_js_exclude |
CP_POLLS_last_verified |
installed_cp-polls |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Polls CP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.34 ▲0.07 | 1.67 ▼0.00 | 43.28 ▲1.40 |
Dashboard /wp-admin | 2,226 ▲46 | 5.58 ▼0.19 | 96.63 ▲5.27 | 43.91 ▲2.13 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.96 ▼0.01 | 36.80 ▲1.92 | 34.05 ▼2.40 |
Add New Post /wp-admin/post-new.php | 6,235 ▲4,709 | 19.04 ▼3.95 | 851.86 ▲115.47 | 35.79 ▼22.41 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.23 ▲0.02 | 100.19 ▼2.04 | 43.35 ▼0.32 |
Upgrade /wp-admin/admin.php?page=CP_Polls_upgrade | 2,174 | 2.43 | 49.71 | 81.31 |
CP Polls /wp-admin/options-general.php?page=CP_Polls | 1,309 | 2.35 | 40.80 | 31.17 |
CP Polls /wp-admin/admin.php?page=CP_Polls | 1,309 | 2.34 | 38.86 | 30.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_cppolls_forms
- wp_cppolls_messages
- This plugin does not fully uninstall, leaving 9 options in the database
- autoptimize_js_exclude
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- installed_cp-polls
- CP_POLLS_last_verified
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/cp-polls/js/fbuilder-loader-admin.php
- > /wp-content/plugins/cp-polls/js/fbuilder-loader-public.php
- > /wp-content/plugins/cp-polls/cp-public-int.inc.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-polls/cp_admin_int_edition.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-polls/cp-admin-int.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-polls/cp-admin-int-report.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-polls/cp-admin-int-message-list.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-polls/cp-admin-int-list.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cp-polls/cp-polls.php:13
- > PHP Fatal error
Uncaught Error: Class 'CP_POLLS_BaseClass' not found in wp-content/plugins/cp-polls/cp-main-class.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-polls/banner.php:102
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-polls/cp-feedback.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=CP_Polls_upgrade
- > Javascript (severe) in unknown
https://wordpress.dwbooster.com/TSScript/tab.js 37:11 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
cp-polls/cp-polls.php Passed 13 tests
"Polls CP" version 1.0.71's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Create classic polls and advanced polls with dependant questions.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin6,863 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 554 | 116 | 3,154 |
JavaScript | 25 | 274 | 137 | 2,878 |
CSS | 4 | 63 | 150 | 742 |
PO File | 2 | 32 | 0 | 89 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 110.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 7.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 93.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.06% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 46 | |
▷ Global constants | 46 | 100.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
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png | 0.14KB | 0.17KB | 0.00% |
css/cupertino/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png | 0.12KB | 0.16KB | 0.00% |
css/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png | 0.12KB | 0.18KB | 0.00% |
css/cupertino/images/ui-icons_3d80b3_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |