Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.18ms] Passed 4 tests
A check of server-side resources used by Survais
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.09 ▼5.75 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.77 ▲2.56 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.64 ▼2.72 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.64 ▼8.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.79 ▲0.73 |
Server storage [IO: ▲0.07MB] [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, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
survais_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Survais
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.24 ▼0.98 | 1.70 ▼0.13 | 40.93 ▼2.43 |
Dashboard /wp-admin | 2,206 ▲15 | 5.80 ▲0.92 | 98.84 ▼12.12 | 79.81 ▲37.13 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.01 ▼0.03 | 36.04 ▼4.35 | 35.42 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.06 ▲4.82 | 713.49 ▲106.80 | 66.62 ▲13.36 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.15 ▲0.01 | 95.82 ▼5.65 | 59.83 ▲16.16 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- survais_options
- widget_recent-posts
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/survais/survais.php
- > /wp-content/plugins/survais/admin/view.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/survais/inc/setup-session.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/survais/inc/setup-session.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/survais/inc/setup-session.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/survais/inc/setup-session.php on line 7
- > PHP Notice
Undefined index: user in wp-content/plugins/survais/inc/setup-session.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/survais/inc/setup-session.php on line 10
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: survais, surveys
survais/survais.php Passed 13 tests
Analyzing the main PHP file in "Survais" version 1.0.1
86 characters long description:
Enable or disable Survais via the Survais WordPress plugin. Sign up at www.survais.com
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected521 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 22 | 0 | 207 |
PHP | 4 | 37 | 9 | 151 |
CSS | 1 | 15 | 2 | 141 |
JSON | 1 | 8 | 0 | 22 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 21.21KB | 11.53KB | ▼ 45.65% |
images/survais.png | 3.01KB | 0.32KB | ▼ 89.42% |
assets/screenshot-2.png | 20.58KB | 11.47KB | ▼ 44.26% |
assets/screenshot-1.png | 6.72KB | 4.11KB | ▼ 38.78% |