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.02MB] [CPU: ▼2.08ms] Passed 4 tests
An overview of server-side resources used by WordPress Survey & Poll - Quiz, Survey and Poll Plugin for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.04 ▼6.68 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.81 ▼1.54 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.30 ▲1.59 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.78 ▼1.68 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.80 ▲5.40 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 65 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_wp_sap_answers |
wp_wp_sap_questions |
wp_wp_sap_surveys |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Survey & Poll - Quiz, Survey and Poll Plugin for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲164 | 14.33 ▲0.12 | 15.51 ▲13.66 | 38.70 ▼5.51 |
Dashboard /wp-admin | 2,207 ▲29 | 5.64 ▼0.12 | 90.93 ▼24.01 | 39.21 ▼4.80 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.98 ▼0.04 | 39.73 ▲0.26 | 36.61 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.64 ▲0.06 | 699.68 ▲34.34 | 61.72 ▼0.84 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.19 ▼0.02 | 102.89 ▲6.55 | 44.86 ▲1.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-survey-and-poll/templates/sidebar.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-survey-and-poll/templates/settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #6 is missing in wp-survey-and-poll/assets to your readme.txt
wp-survey-and-poll/wordpress-survey-and-poll.php 92% from 13 tests
The main PHP script in "WordPress Survey & Poll - Quiz, Survey and Poll Plugin for WordPress" version 1.7.5 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-survey-and-poll.php" instead of "wordpress-survey-and-poll.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin26,730 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 3,113 | 1,833 | 19,017 |
CSS | 5 | 468 | 92 | 4,334 |
PHP | 4 | 26 | 72 | 3,376 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 266.50 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 498.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 24 | |
▷ Static methods | 4 | 16.67% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
37 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
templates/assets/img/star-icon.png | 1.16KB | 0.68KB | ▼ 41.35% |
templates/assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
templates/assets/img/play-button.png | 0.89KB | 0.54KB | ▼ 40.17% |
templates/assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |