Benchmarks
Plugin footprint 65% 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.29MB] [CPU: ▼8.04ms] Passed 4 tests
This is a short check of server-side resources used by Subscribe to Unlock Lite - Opt In Content Locker Plugin for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 37.33 ▼2.77 |
Dashboard /wp-admin | 3.68 ▲0.33 | 52.34 ▼10.23 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 50.54 ▲4.63 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 82.82 ▼22.96 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 36.60 ▲3.81 |
About /wp-admin/admin.php?page=stul-about | 3.52 | 37.45 |
Subscribers /wp-admin/admin.php?page=stul-subscribers | 3.52 | 37.87 |
Settings /wp-admin/admin.php?page=stul-settings | 3.61 | 42.73 |
Help /wp-admin/admin.php?page=stul-help | 3.52 | 37.19 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 89 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_stul_subscribers |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
stul_plugin_install_date |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Subscribe to Unlock Lite - Opt In Content Locker Plugin for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,115 ▲368 | 15.22 ▲0.46 | 6.20 ▲4.33 | 36.18 ▼8.02 |
Dashboard /wp-admin | 2,390 ▲213 | 6.57 ▲0.96 | 123.98 ▲23.59 | 42.08 ▼5.38 |
Posts /wp-admin/edit.php | 2,333 ▲233 | 3.67 ▲1.73 | 48.44 ▲8.93 | 31.25 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,584 ▲58 | 23.20 ▲0.06 | 641.55 ▲4.63 | 36.59 ▼15.23 |
Media Library /wp-admin/upload.php | 1,464 ▲61 | 4.42 ▲0.26 | 82.24 ▼16.79 | 42.84 ▼2.91 |
About /wp-admin/admin.php?page=stul-about | 1,161 | 3.38 | 45.06 | 35.06 |
Subscribers /wp-admin/admin.php?page=stul-subscribers | 1,112 | 3.27 | 44.66 | 71.13 |
Settings /wp-admin/admin.php?page=stul-settings | 2,319 | 6.83 | 144.36 | 127.32 |
Help /wp-admin/admin.php?page=stul-help | 1,145 | 3.33 | 43.70 | 63.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_stul_subscribers
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- stul_plugin_install_date
- theysaidso_admin_options
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 16× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/subscribe-to-unlock-lite/inc/views/backend/stul-settings.php
- > /wp-content/plugins/subscribe-to-unlock-lite/inc/classes/class-stul-library.php
- > /wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/form-preview.php
- > /wp-content/plugins/subscribe-to-unlock-lite/inc/classes/class-stul-enqueue.php
- > /wp-content/plugins/subscribe-to-unlock-lite/inc/cores/subscription-process.php
- > /wp-content/plugins/subscribe-to-unlock-lite/subscribe-to-unlock-lite.php
- > /wp-content/plugins/subscribe-to-unlock-lite/inc/classes/class-stul-ajax-admin.php
- > /wp-content/plugins/subscribe-to-unlock-lite/inc/classes/class-stul-ajax.php
- > /wp-content/plugins/subscribe-to-unlock-lite/inc/views/backend/subscribers/list-subscribers.php
- > /wp-content/plugins/subscribe-to-unlock-lite/inc/classes/class-stul-init.php
- 71× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/form-templates/template-6.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/form-templates/template-2.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/form-templates/template-3.php:39
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/stul-shortcode.php on line 21
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/stul-shortcode.php on line 27
- > PHP Notice
Undefined variable: sub_heading_show in wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/form-templates/template-1.php on line 22
- > PHP Notice
Undefined variable: name_show in wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/form-templates/template-2.php on line 33
- > PHP Notice
Undefined variable: sub_heading_show in wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/form-templates/template-3.php on line 19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/subscribe-to-unlock-lite/inc/views/frontend/stul-shortcode.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/subscribe-to-unlock-lite/inc/views/backend/form-sections/form-settings.php:4
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #7, #8, #9 in subscribe-to-unlock-lite/assets to your readme.txt
subscribe-to-unlock-lite/subscribe-to-unlock-lite.php 92% from 13 tests
Analyzing the main PHP file in "Subscribe to Unlock Lite - Opt In Content Locker Plugin for WordPress" version 1.2.7
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
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
Good job! No executable or dangerous file extensions detected21,930 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 19 | 3,889 | 77 | 10,178 |
SVG | 3 | 0 | 12 | 8,777 |
PHP | 36 | 356 | 953 | 2,466 |
JavaScript | 3 | 57 | 123 | 509 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 9 | 10.00% |
▷ Public methods | 88 | 97.78% |
▷ Protected methods | 2 | 2.22% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 11 | 55.00% |
▷ Class constants | 9 | 45.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tinymce-lock-icon.png | 0.44KB | 0.50KB | 0.00% |
images/stu-upgradeBanner.png | 78.62KB | 33.12KB | ▼ 57.87% |
images/assistance.png | 23.19KB | 9.90KB | ▼ 57.32% |
images/lockIcon.png | 6.46KB | 2.84KB | ▼ 55.97% |
images/upgrade-to-pro-banner.png | 75.28KB | 30.94KB | ▼ 58.89% |