Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼1.54ms] Passed 4 tests
Server-side resources used by SurveyFunnel - Survey Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 52.69 ▲12.46 |
Dashboard /wp-admin | 3.69 ▲0.34 | 49.82 ▼7.98 |
Posts /wp-admin/edit.php | 3.75 ▲0.38 | 51.97 ▲2.33 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 87.23 ▼5.78 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 39.60 ▲5.28 |
Dashboard /wp-admin/admin.php?page=surveyfunnel-lite-dashboard | 3.60 | 36.96 |
Help /wp-admin/admin.php?page=surveyfunnel-lite-help | 3.52 | 34.77 |
/wp-admin/index.php?page=surveyfunnel-lite | 3.47 | 30.72 |
Server storage [IO: ▲6.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 205 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_srf_entries |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
srf-lite-background-update |
Browser metrics Passed 4 tests
An overview of browser requirements for SurveyFunnel - Survey Plugin for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲126 | 13.84 ▼0.52 | 9.03 ▲7.26 | 43.22 ▼2.72 |
Dashboard /wp-admin | 2,219 ▲45 | 5.54 ▲0.03 | 82.88 ▼6.93 | 83.58 ▲40.65 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.01 ▲0.02 | 35.37 ▼0.37 | 32.88 ▼4.02 |
Add New Post /wp-admin/post-new.php | 6,230 ▲4,704 | 19.36 ▼3.70 | 892.51 ▲233.88 | 43.41 ▼3.90 |
Media Library /wp-admin/upload.php | 1,442 ▲39 | 4.20 ▲0.06 | 99.30 ▲3.68 | 82.80 ▲39.58 |
Dashboard /wp-admin/admin.php?page=surveyfunnel-lite-dashboard | 1,078 | 1.99 | 31.21 | 51.88 |
Help /wp-admin/admin.php?page=surveyfunnel-lite-help | 886 | 1.94 | 30.55 | 35.38 |
/wp-admin/index.php?page=surveyfunnel-lite | 184 | 2.85 | 77.00 | 10.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_srf_entries
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- srf-lite-background-update
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 0% 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)
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=surveyfunnel-lite
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/surveyfunnel-lite/admin/class-surveyfunnel-lite-admin.php+580
Trying to access array offset on value of type bool
- > GET request to /wp-admin/index.php?page=surveyfunnel-lite
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/surveyfunnel-lite/admin/class-surveyfunnel-lite-admin.php+469
Trying to get property 'post_status' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/surveyfunnel-lite/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
- > /wp-content/plugins/surveyfunnel-lite/public/partials/wp-survey-funnel-public-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/surveyfunnel-lite/admin/views/admin-display-dashboard-page.php:18
- > PHP Warning
require_once(wp-content/plugins/surveyfunnel-lite/vendor/composer/autoload_real.php): failed to open stream: No such file or directory in wp-content/plugins/surveyfunnel-lite/vendor/autoload.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/surveyfunnel-lite/vendor/composer/autoload_real.php' (include_path='.:/usr/share/php') in wp-content/plugins/surveyfunnel-lite/vendor/autoload.php on line 5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=surveyfunnel-lite-help
- > Network (severe)
wp-content/plugins/surveyfunnel-lite/images/SF-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/index.php?page=surveyfunnel-lite
- > Console-api (severe) in unknown
/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003 157:82260 TypeError: Cannot read properties of null (reading 'answersHighlightBoxColor')at /wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:191:16072at Il (/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:158:104085)at t.unstable_runWithPriority (/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:191:3768)at $a (/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:158:44735)at Hl (/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:158:103548)at vl (/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:158:95076)at /wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:158:44958at t.unstable_runWithPriority (/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:191:3768)at $a (/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:158:44735)at qa (/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003:158:44903)
- > GET request to /wp-admin/index.php?page=surveyfunnel-lite
- > Javascript (severe) in unknown
/wp-content/plugins/surveyfunnel-lite/dist/index.bundle.js?ver=1698007003 190:12188 Uncaught TypeError: Cannot read properties of null (reading 'metaInfo')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
surveyfunnel-lite/surveyfunnel-lite.php 92% from 13 tests
"SurveyFunnel - Survey Plugin for WordPress" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 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
There were no executable files found in this plugin18,635 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 70 | 562 | 200 | 6,261 |
JSON | 4 | 0 | 0 | 5,562 |
Sass | 7 | 236 | 4 | 3,096 |
PHP | 17 | 434 | 1,696 | 2,493 |
CSS | 9 | 121 | 15 | 861 |
Markdown | 5 | 142 | 0 | 327 |
XML | 1 | 0 | 0 | 20 |
YAML | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 25 | 22.32% |
▷ Public methods | 104 | 92.86% |
▷ Protected methods | 2 | 1.79% |
▷ Private methods | 6 | 5.36% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 100.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
73 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/Components/Reports/ReportImages/nodata.png | 11.03KB | 4.82KB | ▼ 56.27% |
src/Components/Build/BuildImages/Organisation.png | 0.29KB | 0.30KB | 0.00% |
admin/admin-images/dashboard-images/build.png | 1.19KB | 0.57KB | ▼ 52.14% |
admin/admin-images/dashboard-images/Share.png | 1.11KB | 0.35KB | ▼ 68.08% |
src/Components/Build/BuildImages/tablet.png | 0.83KB | 0.83KB | 0.00% |