Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.49ms] Passed 4 tests
An overview of server-side resources used by DIYVA Voice Survey
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.30 ▼22.78 |
Dashboard /wp-admin | 3.33 ▲0.02 | 52.99 ▲0.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.25 ▼6.35 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 120.15 ▲22.55 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 43.34 ▲6.31 |
Dialog Settings /wp-admin/admin.php?page=diyva-voice-survey-plugin-dialog-settings | 3.25 | 33.33 |
Display Settings /wp-admin/admin.php?page=diyva-voice-survey-plugin-display-settings | 3.27 | 35.57 |
DIYVA Voice Survey /wp-admin/admin.php?page=diyva-voice-survey-plugin | 3.24 | 33.62 |
Query Parameters /wp-admin/admin.php?page=diyva-voice-survey-plugin-query-parameters | 3.28 | 34.03 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for DIYVA Voice Survey
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲161 | 14.11 ▲0.89 | 5.92 ▲3.67 | 40.33 ▼9.17 |
Dashboard /wp-admin | 2,229 ▲20 | 4.90 ▼0.19 | 104.05 ▼8.06 | 81.14 ▲36.82 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.02 ▲0.03 | 35.78 ▼4.82 | 35.23 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 23.25 ▲0.05 | 774.82 ▲106.61 | 60.82 ▼0.72 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.20 ▼0.22 | 99.91 ▼11.19 | 83.48 ▲37.55 |
Dialog Settings /wp-admin/admin.php?page=diyva-voice-survey-plugin-dialog-settings | 839 | 2.19 | 24.56 | 28.56 |
Display Settings /wp-admin/admin.php?page=diyva-voice-survey-plugin-display-settings | 1,130 | 1.72 | 25.16 | 28.71 |
DIYVA Voice Survey /wp-admin/admin.php?page=diyva-voice-survey-plugin | 833 | 2.05 | 24.46 | 28.14 |
Query Parameters /wp-admin/admin.php?page=diyva-voice-survey-plugin-query-parameters | 888 | 2.02 | 23.62 | 26.10 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/diyva-voice-survey/public/partials/diyva-voice-survey-public-display.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/diyva-voice-survey/admin/partials/diyva-voice-survey-admin-query-parameters.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/diyva-voice-survey/admin/partials/diyva-voice-survey-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/diyva-voice-survey/admin/partials/diyva-voice-survey-admin-dialog-settings.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/diyva-voice-survey/admin/partials/diyva-voice-survey-admin-display-settings.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
diyva-voice-survey/diyva-voice-survey.php Passed 13 tests
The main file in "DIYVA Voice Survey" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
129 characters long description:
Use this plugin to enable frictionless conversational voice surveys to gather product feedback and measure customer satisfaction.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin838 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 264 | 637 | 718 |
CSS | 2 | 15 | 8 | 89 |
JavaScript | 2 | 6 | 54 | 31 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 116)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 21.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 116.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected