Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.95ms] Passed 4 tests
This is a short check of server-side resources used by GD Topic Polls: plugin for WordPress and bbPress Forums
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.94 ▼7.29 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.68 ▼4.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.18 ▲2.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.74 ▼17.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.10 ▲1.67 |
Overview /wp-admin/admin.php?page=gd-topic-polls-dashboard | 3.01 | 23.18 |
About /wp-admin/admin.php?page=gd-topic-polls-about | 3.00 | 27.51 |
Tools /wp-admin/admin.php?page=gd-topic-polls-tools | 3.00 | 22.42 |
Votes /wp-admin/admin.php?page=gd-topic-polls-votes | 3.00 | 23.83 |
Settings /wp-admin/admin.php?page=gd-topic-polls-settings | 3.00 | 19.63 |
Polls /wp-admin/admin.php?page=gd-topic-polls-polls | 3.00 | 25.53 |
Server storage [IO: ▲3.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 419 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
GD Topic Polls: plugin for WordPress and bbPress Forums: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.27 ▼0.28 | 1.58 ▼0.14 | 39.42 ▼6.14 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▲0.05 | 90.83 ▼10.57 | 38.84 ▼9.65 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.02 | 38.40 ▼1.17 | 36.17 ▲2.53 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 22.99 ▲4.93 | 692.57 ▲72.00 | 55.56 ▼17.24 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.05 | 99.82 ▲5.23 | 42.99 ▲1.63 |
Overview /wp-admin/admin.php?page=gd-topic-polls-dashboard | 28 | 0.42 | 0.08 | 3.72 |
About /wp-admin/admin.php?page=gd-topic-polls-about | 28 | 0.42 | 0.09 | 3.35 |
Tools /wp-admin/admin.php?page=gd-topic-polls-tools | 28 | 0.42 | 0.11 | 4.21 |
Votes /wp-admin/admin.php?page=gd-topic-polls-votes | 28 | 0.42 | 0.07 | 4.00 |
Settings /wp-admin/admin.php?page=gd-topic-polls-settings | 28 | 0.42 | 0.09 | 3.57 |
Polls /wp-admin/admin.php?page=gd-topic-polls-polls | 28 | 0.42 | 0.06 | 3.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gd-topic-polls/forms/content-about-whatsnew.php
- 41× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant GDPOL_PATH - assumed 'GDPOL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gd-topic-polls/forms/content-update.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gd-topic-polls/forms/content-dashboard-status.php:2
- > PHP Warning
include(GDPOL_PATHforms/setup/rules.php): failed to open stream: No such file or directory in wp-content/plugins/gd-topic-polls/forms/content-install.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-topic-polls/forms/content-about-changelog.php:2
- > PHP Warning
include(GDPOL_PATHforms/setup/database.php): failed to open stream: No such file or directory in wp-content/plugins/gd-topic-polls/forms/content-install.php on line 11
- > PHP Warning
include(): Failed opening 'GDPOL_PATHforms/setup/rules.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gd-topic-polls/forms/content-update.php on line 12
- > PHP Warning
include(GDPOL_PATHforms/content-about-minor.php): failed to open stream: No such file or directory in wp-content/plugins/gd-topic-polls/forms/content-about-whatsnew.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function gdpol_settings() in wp-content/plugins/gd-topic-polls/forms/content-update.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gd-topic-polls/forms/dialogs/polls.php:2
- > PHP Warning
include(): Failed opening 'GDPOL_PATHforms/setup/rules.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gd-topic-polls/forms/content-install.php on line 12
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=gd-topic-polls-dashboard
- > Network (severe)
wp-admin/admin.php?page=gd-topic-polls-dashboard - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=gd-topic-polls-about
- > Network (severe)
wp-admin/admin.php?page=gd-topic-polls-about - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=gd-topic-polls-tools
- > Network (severe)
wp-admin/admin.php?page=gd-topic-polls-tools - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=gd-topic-polls-votes
- > Network (severe)
wp-admin/admin.php?page=gd-topic-polls-votes - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=gd-topic-polls-settings
- > Network (severe)
wp-admin/admin.php?page=gd-topic-polls-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=gd-topic-polls-polls
- > Network (severe)
wp-admin/admin.php?page=gd-topic-polls-polls - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: dev4press, forum, bbpress poll, forum polls, topic poll
gd-topic-polls/gd-topic-polls.php 92% from 13 tests
The main PHP script in "GD Topic Polls: plugin for WordPress and bbPress Forums" version 2.3 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin38,093 lines of code in 371 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 203 | 4,523 | 2,831 | 17,982 |
CSS | 45 | 1,493 | 39 | 11,331 |
Sass | 49 | 910 | 26 | 5,269 |
JavaScript | 72 | 352 | 110 | 3,483 |
Markdown | 2 | 12 | 0 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 129 | |
▷ Abstract classes | 42 | 32.56% |
▷ Concrete classes | 87 | 67.44% |
▷ Final classes | 2 | 2.30% |
Methods | 1,266 | |
▷ Static methods | 197 | 15.56% |
▷ Public methods | 940 | 74.25% |
▷ Protected methods | 275 | 21.72% |
▷ Private methods | 51 | 4.03% |
Functions | 23 | |
▷ Named functions | 21 | 91.30% |
▷ Anonymous functions | 2 | 8.70% |
Constants | 52 | |
▷ Global constants | 5 | 9.62% |
▷ Class constants | 47 | 90.38% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
d4plib/resources/vendor/flags/img/flag_placeholder.png | 0.09KB | 0.09KB | 0.00% |
templates/quantum/css/icons/chart.png | 0.63KB | 0.73KB | 0.00% |
d4plib/resources/gfx/buy_me_a_coffee.png | 7.73KB | 7.79KB | 0.00% |
templates/default/css/icons/chart.png | 0.63KB | 0.73KB | 0.00% |
d4plib/resources/vendor/flags/img/flags_responsive.png | 54.14KB | 57.01KB | 0.00% |