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.06MB] [CPU: ▼5.70ms] Passed 4 tests
Server-side resources used by Polls, Surveys, Contests and Quizzes for Pages
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.00 ▼6.60 |
Dashboard /wp-admin | 3.36 ▲0.05 | 55.10 ▲3.56 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.20 ▼3.43 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.01 ▼13.56 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.54 ▲0.79 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Polls, Surveys, Contests and Quizzes for Pages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.20 ▼0.37 | 1.70 ▲0.01 | 41.44 ▼4.49 |
Dashboard /wp-admin | 2,242 ▲65 | 5.57 ▼0.07 | 92.88 ▲2.71 | 40.63 ▼5.65 |
Posts /wp-admin/edit.php | 2,147 ▲42 | 2.02 ▲0.02 | 38.18 ▼0.27 | 38.16 ▼0.53 |
Add New Post /wp-admin/post-new.php | 6,242 ▲4,716 | 18.98 ▼4.60 | 926.52 ▲227.36 | 63.77 ▲4.50 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.19 ▲0.07 | 101.87 ▼17.20 | 47.46 ▼2.12 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/polls-surveys-contests-and-quizzes-for-pages/partials/classic_modal.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/polls-surveys-contests-and-quizzes-for-pages/pscq.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/polls-surveys-contests-and-quizzes-for-pages/partials/classic_button.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: contest, quiz, poll, survey
polls-surveys-contests-and-quizzes-for-pages/pscq.php 85% from 13 tests
"Polls, Surveys, Contests and Quizzes for Pages" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("polls-surveys-contests-and-quizzes-for-pages.php" instead of "pscq.php")
Code Analysis Passed 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
There were no executable files found in this plugin610 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 80 | 60 | 220 |
PHP | 6 | 25 | 12 | 166 |
JavaScript | 2 | 12 | 2 | 141 |
CSS | 2 | 12 | 0 | 82 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 1.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin