Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.18MB] [CPU: ▼269.00ms] 75% from 4 tests
Server-side resources used by Wadi Survey
It is recommended to improve the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.18MB on /wp-admin/admin.php?page=single_survey)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.66 ▲5.15 | 86.87 ▲36.29 |
Dashboard /wp-admin | 8.57 ▲5.16 | 71.85 ▼9.64 |
Posts /wp-admin/edit.php | 8.86 ▲5.22 | 70.51 ▲33.13 |
Add New Post /wp-admin/post-new.php | 12.19 ▲5.23 | 124.16 ▼1,129.98 |
Media Library /wp-admin/upload.php | 8.49 ▲5.19 | 58.83 ▲30.49 |
Single Poll Submissions /wp-admin/admin.php?page=single_poll | 8.53 | 55.65 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.75 | 87.71 |
Single Survey Submissions /wp-admin/admin.php?page=single_survey | 8.53 | 56.41 |
Server storage [IO: ▲13.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 663 new files
Database: 2 new tables, 4 new options
New tables |
---|
wp_wadi_poll_submissions |
wp_wadi_survey_submissions |
New WordPress options |
---|
fs_gdpr |
fs_accounts |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
Wadi Survey: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,294 ▲550 | 21.08 ▲5.14 | 9.61 ▲3.74 | 2.31 ▲0.39 |
Dashboard /wp-admin | 3,300 ▲442 | 10.64 ▲4.47 | 203.56 ▲63.26 | 209.85 ▲44.26 |
Posts /wp-admin/edit.php | 3,113 ▲419 | 7.59 ▲4.35 | 112.89 ▲18.76 | 210.03 ▲42.25 |
Add New Post /wp-admin/post-new.php | 1,863 ▲202 | 17.42 ▲1.37 | 515.03 ▲77.75 | 176.68 ▲19.17 |
Media Library /wp-admin/upload.php | 1,922 ▲221 | 7.97 ▲2.39 | 145.02 ▲0.68 | 210.05 ▲23.20 |
Single Poll Submissions /wp-admin/admin.php?page=single_poll | 1,414 | 7.67 | 108.43 | 53.77 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,870 | 7.51 | 98.49 | 114.77 |
Single Survey Submissions /wp-admin/admin.php?page=single_survey | 1,412 | 7.52 | 105.46 | 47.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wadi-survey/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 4 options
- fs_active_plugins
- fs_debug_mode
- fs_gdpr
- fs_accounts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=single_poll
- > Notice in wp-content/plugins/wadi-survey/includes/single-submissions-poll.php+14
Undefined index: poll_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=single_survey
- > Warning in wp-content/plugins/wadi-survey/includes/single-submissions-survey.php+174
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2699)
- > GET request to /wp-admin/admin.php?page=single_survey
- > Notice in wp-content/plugins/wadi-survey/includes/single-submissions-survey.php+14
Undefined index: survey_id
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wadi-survey/includes/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/wadi-survey/freemius/templates/ajax-loader.php
- 125× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wadi-survey/includes/vendor/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wadi-survey/includes/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Theme_Options_Container' not found in wp-content/plugins/wadi-survey/includes/vendor/htmlburger/carbon-fields/core/Container/Network_Container.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wadi-survey/includes/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Level_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wadi-survey/includes/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wadi-survey/includes/vendor/htmlburger/carbon-fields/core/Container/Condition/Blog_ID_Condition.php:8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wadi-survey/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wadi-survey/includes/vendor/htmlburger/carbon-fields/core/Field/Predefined_Options_Field.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wadi-survey/includes/class-wadi-survey-enqueue.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wadi-survey/includes/vendor/htmlburger/carbon-fields/core/Container/Post_Meta_Container.php:14
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: poll, survey, wadi survey, survey plugin for wordpress, poll plugin for wordpress...
wadi-survey/wadi-survey.php 77% from 13 tests
The entry point to "Wadi Survey" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.2")
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "7.2")
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected81,553 lines of code in 579 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 271 | 10,306 | 23,205 | 42,648 |
JSON | 6 | 0 | 0 | 18,876 |
JavaScript | 191 | 5,315 | 8,595 | 13,770 |
Sass | 56 | 412 | 28 | 2,305 |
PO File | 26 | 819 | 1,020 | 2,202 |
CSS | 26 | 325 | 1,155 | 1,684 |
Markdown | 3 | 24 | 0 | 68 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 29.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 172 | |
▷ Abstract classes | 13 | 7.56% |
▷ Concrete classes | 159 | 92.44% |
▷ Final classes | 1 | 0.63% |
Methods | 2,079 | |
▷ Static methods | 278 | 13.37% |
▷ Public methods | 1,569 | 75.47% |
▷ Protected methods | 180 | 8.66% |
▷ Private methods | 330 | 15.87% |
Functions | 210 | |
▷ Named functions | 129 | 61.43% |
▷ Anonymous functions | 81 | 38.57% |
Constants | 154 | |
▷ Global constants | 106 | 68.83% |
▷ Class constants | 48 | 31.17% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/wadi-survey.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |