Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.35MB] [CPU: ▲11.32ms] Passed 4 tests
An overview of server-side resources used by Survey Plugin - Quiz, Question, Pull Builder For WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.84 ▲1.38 | 52.44 ▲8.76 |
Dashboard /wp-admin | 4.67 ▲1.36 | 65.45 ▲6.84 |
Posts /wp-admin/edit.php | 4.79 ▲1.43 | 73.51 ▲20.01 |
Add New Post /wp-admin/post-new.php | 7.26 ▲1.37 | 111.82 ▲12.85 |
Media Library /wp-admin/upload.php | 4.53 ▲1.29 | 55.65 ▲16.83 |
Add New /wp-admin/post-new.php?post_type=gpsp_survey | 4.73 | 63.99 |
Settings /wp-admin/edit.php?post_type=gpsp_survey&page=srvy_survey_settings | 4.57 | 53.69 |
Help /wp-admin/edit.php?post_type=gpsp_survey&page=grandplugin_help | 4.57 | 58.57 |
Manage Survey /wp-admin/edit.php?post_type=gpsp_survey | 4.71 | 74.05 |
Server storage [IO: ▲3.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 185 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
_srvy_option_settings |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Survey Plugin - Quiz, Question, Pull Builder For WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲177 | 13.53 ▼0.83 | 11.48 ▲9.37 | 37.52 ▼6.34 |
Dashboard /wp-admin | 2,231 ▲57 | 5.64 ▼0.02 | 96.51 ▼6.34 | 39.30 ▼3.88 |
Posts /wp-admin/edit.php | 2,512 ▲409 | 5.62 ▲3.62 | 99.58 ▲57.54 | 36.15 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,758 ▲232 | 20.36 ▼2.80 | 664.40 ▲21.92 | 58.79 ▲7.90 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.09 ▼0.11 | 81.99 ▼26.51 | 43.57 ▼1.25 |
Add New /wp-admin/post-new.php?post_type=gpsp_survey | 2,584 | 6.58 | 150.54 | 68.13 |
Settings /wp-admin/edit.php?post_type=gpsp_survey&page=srvy_survey_settings | 2,416 | 9.77 | 197.08 | 87.84 |
Help /wp-admin/edit.php?post_type=gpsp_survey&page=grandplugin_help | 1,810 | 12.42 | 326.82 | 138.86 |
Manage Survey /wp-admin/edit.php?post_type=gpsp_survey | 1,478 | 5.15 | 75.85 | 31.46 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- _srvy_option_settings
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- 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)
Even though no errors were found, 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/survey-popup/public/partials/survey-popup-public-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/survey-popup/public/dynamic-styles.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/survey-popup/admin/partials/survey-popup-admin-display.php:184
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=gpsp_survey
- > Javascript (severe) in unknown
/wp-content/plugins/survey-popup/admin/js/chart.min.js?ver=2.7.2 6:75740 Uncaught Error: "horizontalBar" is not a registered controller.
- > GET request to /wp-admin/post-new.php?post_type=gpsp_survey
- > Network (severe)
wp-content/plugins/survey-popup/admin/srvy-metafields/assets/images/preloader.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
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
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Survey Popup Back-end.), #2 (Survey Popup Question Builder.), #3 (Survey Popup Analytics Bar Chart.), #4 (Survey Popup Button Settings.), #5 (Survey Popup Popup Settings.), #6 (Survey Popup Front-end.)
survey-popup/survey-popup.php Passed 13 tests
The principal PHP file in "Survey Plugin - Quiz, Question, Pull Builder For WordPress" v. 1.0.0 is loaded by WordPress automatically on each request
28 characters long description:
Survey plugin. Survey Popup.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin33,932 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 85 | 2,074 | 1,575 | 7,067 |
JavaScript | 10 | 1,336 | 575 | 6,658 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 969 | 3 | 5,667 |
CSS | 7 | 465 | 555 | 5,367 |
SVG | 3 | 0 | 0 | 2,673 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 18.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 6.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 2 | 3.03% |
▷ Concrete classes | 64 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 227 | |
▷ Static methods | 31 | 13.66% |
▷ Public methods | 221 | 97.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 2.64% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/srvy-metafields/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
admin/img/advanced-custom-code-logo.png | 22.18KB | 3.71KB | ▼ 83.26% |
admin/img/get-api-key.png | 44.92KB | 22.32KB | ▼ 50.30% |
admin/img/icon-128x128.png | 4.52KB | 2.26KB | ▼ 50.10% |
admin/img/youtube-video-id.png | 20.48KB | 19.97KB | ▼ 2.49% |