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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.56MB] [CPU: ▼6.17ms] Passed 4 tests
Server-side resources used by WOW!Q
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 45.38 ▲4.55 |
Dashboard /wp-admin | 3.91 ▲0.56 | 47.82 ▼22.11 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 49.62 ▲6.26 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.54 | 89.71 ▼7.05 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 35.38 ▼0.08 |
Server storage [IO: ▲4.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WOW!Q
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.54 ▼0.81 | 13.16 ▲11.61 | 39.70 ▼4.38 |
Dashboard /wp-admin | 2,205 ▲28 | 5.58 ▼0.04 | 83.97 ▼3.57 | 36.92 ▼3.61 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.98 ▼0.05 | 32.33 ▼3.48 | 31.23 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.09 ▼1.49 | 651.44 ▼54.90 | 53.57 ▼1.59 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.23 ▼0.04 | 94.37 ▼9.29 | 40.69 ▼5.02 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wowquestionnaire/public/partials/wow-questionnaire-public-display.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Wow_Questionnaire_Admin' not found in wp-content/plugins/wowquestionnaire/admin/settings/class-wowq-questionnaires.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wowquestionnaire/public/partials/privacy-policy-template.php:2
- > PHP Fatal error
Uncaught Error: Class 'Wow_Questionnaire_Admin' not found in wp-content/plugins/wowquestionnaire/admin/settings/class-wowq-gdpr.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function flush_rewrite_rules() in wp-content/plugins/wowquestionnaire/admin/partials/wow-questionnaire-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Class 'Wow_Questionnaire_Admin' not found in wp-content/plugins/wowquestionnaire/admin/settings/class-wowq-privacy-policy.php:9
- > PHP Fatal error
Uncaught Error: Class 'Wow_Questionnaire_Admin' not found in wp-content/plugins/wowquestionnaire/admin/settings/class-wowq-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wowquestionnaire/public/partials/gdpr-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Requires php: Invalid version format
wowquestionnaire/wow-questionnaire.php 85% from 13 tests
The main PHP script in "WOW!Q" version 1.4.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wowquestionnaire.php" instead of "wow-questionnaire.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected69,995 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 827 | 991 | 24,917 |
CSS | 22 | 609 | 97 | 20,739 |
JSON | 2 | 0 | 0 | 18,675 |
SVG | 2 | 0 | 0 | 2,959 |
PHP | 18 | 726 | 1,010 | 2,696 |
Markdown | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 24.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 2 | 2.15% |
▷ Public methods | 75 | 80.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 19.35% |
Functions | 3 | |
▷ Named functions | 3 | 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
6 PNG files occupy 0.26MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/powered_by_square.png | 7.78KB | 3.70KB | ▼ 52.51% |
public/images/powered_by_stripe.png | 2.45KB | 2.28KB | ▼ 6.89% |
public/images/EU_Flag.png | 12.40KB | 7.14KB | ▼ 42.40% |
public/images/down-arrow.png | 0.29KB | 0.25KB | ▼ 15.28% |
public/vendor/int-tel-input/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |