Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼7.19ms] Passed 4 tests
This is a short check of server-side resources used by Poll, Survey & Quiz Maker Plugin by Opinion Stage
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 37.61 ▼5.01 |
Dashboard /wp-admin | 3.48 ▲0.13 | 49.08 ▼12.66 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 45.07 ▼1.36 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 87.84 ▼9.74 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 40.79 ▲4.24 |
/wp-admin/admin.php?page=opinionstage-disconnect-page | 3.28 | 28.54 |
/wp-admin/admin.php?page=opinionstage-login-callback | 3.26 | 41.24 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 135 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_opinionstage_widget |
opinionstage_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Poll, Survey & Quiz Maker Plugin by Opinion Stage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲150 | 13.43 ▼0.92 | 8.41 ▲6.65 | 37.40 ▼6.27 |
Dashboard /wp-admin | 2,224 ▲46 | 5.51 ▼0.15 | 89.13 ▼26.67 | 65.47 ▲23.46 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.99 ▲0.01 | 34.49 ▲1.55 | 29.20 ▼9.71 |
Add New Post /wp-admin/post-new.php | 6,658 ▲5,132 | 19.40 ▼3.41 | 949.12 ▲199.53 | 61.28 ▲2.28 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.12 ▼0.10 | 112.26 ▲7.78 | 77.38 ▲31.81 |
/wp-admin/admin.php?page=opinionstage-disconnect-page | 28 | 0.42 | 0.07 | 3.52 |
/wp-admin/admin.php?page=opinionstage-login-callback | 28 | 0.42 | 0.06 | 3.44 |
Uninstaller [IO: ▲2.20MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionThis plugin does not fully uninstall, leaving 8 options in the database
- Incomplete uninstall procedure, leaving 135 files (2.20MB) in the plugin directory
- (new file) Makefile
- (new file) admin/content-popup-button.php
- (new file) admin/css/fonts/os-icon-font.eot
- (new file) admin/content-popup-template.html.php
- (new file) admin/css/admin-feedback.css
- (new file) admin/content-popup.php
- (new file) admin/css/fonts/os-icon-font.svg
- (new file) admin/admin-page-loader.php
- (new file) .gitattributes
- (new file) .gitignore
- ...
- opinionstage_widget
- widget_opinionstage_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/social-polls-by-opinionstage/admin/template-parts/vue/create-screen.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/social-polls-by-opinionstage/admin/template-parts/header-logo-line-logout-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/social-polls-by-opinionstage/admin/template-parts/signup-form.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/social-polls-by-opinionstage/admin/template-parts/vue/widget-list.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/social-polls-by-opinionstage/admin/template-parts/widget-form.php:62
- > PHP Notice
Undefined variable: os_client_logged_in in wp-content/plugins/social-polls-by-opinionstage/admin/template-parts/widget-form.php on line 10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=opinionstage-disconnect-page
- > Network (severe)
wp-admin/admin.php?page=opinionstage-disconnect-page - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=opinionstage-login-callback
- > Network (severe)
wp-admin/admin.php?page=opinionstage-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: survey, poll plugin, quiz plugin, poll, survey plugin...
social-polls-by-opinionstage/plugin.php 85% from 13 tests
This is the main PHP file of "Poll, Survey & Quiz Maker Plugin by Opinion Stage" version 19.8.18, 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:
- Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("social-polls-by-opinionstage.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin35,361 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 0 | 0 | 29,305 |
PHP | 44 | 548 | 1,141 | 2,450 |
Sass | 9 | 282 | 12 | 2,208 |
JavaScript | 22 | 172 | 33 | 1,219 |
SVG | 4 | 0 | 0 | 166 |
make | 1 | 4 | 0 | 9 |
CSS | 4 | 1 | 0 | 4 |
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.32 |
Average class complexity | 13.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 4 | 4.00% |
▷ Public methods | 81 | 81.00% |
▷ Protected methods | 9 | 9.00% |
▷ Private methods | 10 | 10.00% |
Functions | 65 | |
▷ Named functions | 64 | 98.46% |
▷ Anonymous functions | 1 | 1.54% |
Constants | 31 | |
▷ Global constants | 31 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
36 PNG files occupy 0.41MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/slideshow@3x.png | 3.60KB | 2.01KB | ▼ 44.16% |
admin/images/welcome-to-opinionstage.png | 109.29KB | 120.60KB | 0.00% |
admin/images/top-bg.png | 195.15KB | 93.83KB | ▼ 51.92% |
admin/images/logos/bbdo.png | 0.66KB | 0.69KB | 0.00% |
admin/images/logos/wb.png | 0.87KB | 0.91KB | 0.00% |