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.01MB] [CPU: ▼4.67ms] Passed 4 tests
Analyzing server-side resources used by Survey
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.16 ▼8.54 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.28 ▲2.44 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.76 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 96.63 ▼11.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.43 ▼0.35 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Survey
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.65 ▲0.27 | 1.61 ▼0.54 | 42.29 ▼2.86 |
Dashboard /wp-admin | 2,212 ▲32 | 5.60 ▼0.08 | 84.90 ▼7.95 | 89.94 ▲43.58 |
Posts /wp-admin/edit.php | 2,114 ▲17 | 2.02 ▲0.01 | 40.85 ▲3.49 | 34.99 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,704 ▲173 | 24.47 ▲1.25 | 728.88 ▲85.58 | 53.43 ▲4.91 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.17 ▼0.09 | 107.83 ▲9.39 | 50.68 ▲5.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | 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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/survey/survey.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/survey/inc/form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/survey/inc/shortcode.php:125
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add an image for screenshot #1 (Admin Panel view of submitted form data.)
survey/survey.php Passed 13 tests
"Survey" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
86 characters long description:
Simple WordPress Survey Plugin. Survey is easy to use, Include Shortcode in your page.
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
Everything looks great! No dangerous files found in this plugin311 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 88 | 14 | 213 |
CSS | 2 | 19 | 0 | 98 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.58KB | 1.43KB | ▼ 9.69% |
screenshot-1.png | 15.09KB | 6.03KB | ▼ 60.03% |
images/logo.png | 11.25KB | 4.39KB | ▼ 60.99% |
screenshot-3.png | 38.16KB | 14.94KB | ▼ 60.84% |
screenshot-2.png | 19.10KB | 7.62KB | ▼ 60.12% |