Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼3.88ms] Passed 4 tests
This is a short check of server-side resources used by SurveyLock.me
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 41.47 ▲2.66 |
Dashboard /wp-admin | 3.66 ▲0.32 | 49.53 ▼9.31 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 44.34 ▼0.06 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 86.83 ▼8.79 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.79 ▲5.83 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 84 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
slm_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SurveyLock.me
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲237 | 13.83 ▼0.79 | 5.98 ▲4.25 | 43.18 ▼4.87 |
Dashboard /wp-admin | 2,281 ▲93 | 5.14 ▼0.74 | 119.46 ▲16.79 | 42.51 ▲1.08 |
Posts /wp-admin/edit.php | 2,163 ▲74 | 2.38 ▲0.37 | 37.14 ▲1.42 | 34.00 ▼0.34 |
Add New Post /wp-admin/post-new.php | 6,246 ▲4,713 | 26.16 ▲2.90 | 913.76 ▲290.39 | 38.63 ▼11.34 |
Media Library /wp-admin/upload.php | 1,460 ▲72 | 4.45 ▲0.19 | 99.28 ▲1.55 | 42.94 ▲1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- slm_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/surveylock-me/templates/common/loaders/bars_loader.php
- > /wp-content/plugins/surveylock-me/templates/public/cta.php
- > /wp-content/plugins/surveylock-me/templates/public/shortcode.php
- > /wp-content/plugins/surveylock-me/templates/admin/sections/content/helper.php
- > /wp-content/plugins/surveylock-me/survey-lock-me.php
- 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function srvlm_get_option() in wp-content/plugins/surveylock-me/templates/admin/sections/content/brand.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function srvlm_get_option() in wp-content/plugins/surveylock-me/templates/admin/sections/common/loader_color.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function srvlm_get_option() in wp-content/plugins/surveylock-me/templates/admin/sections/content/loader_text.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function srvlm_get_option() in wp-content/plugins/surveylock-me/templates/admin/sections/common/cta_text.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function srvlm_get_option() in wp-content/plugins/surveylock-me/templates/admin/sections/content/loader_color.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function srvlm_get_option() in wp-content/plugins/surveylock-me/templates/admin/sections/common/cta_button_color.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function srvlm_get_option() in wp-content/plugins/surveylock-me/templates/admin/sections/content/max_block_height.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function srvlm_get_option() in wp-content/plugins/surveylock-me/templates/admin/sections/snax/loader_text.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/surveylock-me/templates/admin/sections/common/debug_mode.php:2
- > PHP Notice
Undefined variable: maxHeight in wp-content/plugins/surveylock-me/templates/public/shortcode.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 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: monetization, content lock
surveylock-me/survey-lock-me.php 69% from 13 tests
"SurveyLock.me" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("surveylock-me.php" instead of "survey-lock-me.php")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,479 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 308 | 213 | 1,536 |
JavaScript | 8 | 73 | 0 | 560 |
Sass | 6 | 42 | 0 | 301 |
SVG | 2 | 0 | 0 | 64 |
JSON | 2 | 0 | 0 | 14 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 132 | |
▷ Static methods | 11 | 8.33% |
▷ Public methods | 83 | 62.88% |
▷ Protected methods | 27 | 20.45% |
▷ Private methods | 22 | 16.67% |
Functions | 19 | |
▷ Named functions | 17 | 89.47% |
▷ Anonymous functions | 2 | 10.53% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin