Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲2.20MB] [CPU: ▲9.36ms] 75% from 4 tests
This is a short check of server-side resources used by Super Social Content Locker Lite
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,034.88ms on /wp-admin/admin.php?page=super-social-content-locker-lite)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.61 ▲2.15 | 65.60 ▲20.49 |
Dashboard /wp-admin | 5.56 ▲2.21 | 66.35 ▼2.78 |
Posts /wp-admin/edit.php | 5.61 ▲2.25 | 66.52 ▲15.60 |
Add New Post /wp-admin/post-new.php | 8.10 ▲2.21 | 107.81 ▲4.11 |
Media Library /wp-admin/upload.php | 5.45 ▲2.23 | 61.89 ▲24.17 |
Settings Panel /wp-admin/edit.php?post_type=ct_sscl&page=sscl_settings_panel | 5.48 | 916.19 |
About Pro /wp-admin/edit.php?post_type=ct_sscl&page=sscl_about_pro_page | 5.46 | 49.61 |
All Content Locker /wp-admin/edit.php?post_type=ct_sscl | 5.53 | 55.98 |
Add New /wp-admin/post-new.php?post_type=ct_sscl | 5.66 | 66.34 |
Super Social Content Locker /wp-admin/admin.php?page=super-social-content-locker-lite | 5.65 | 1,034.88 |
Server storage [IO: ▲3.35MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/super-social-content-locker-lite/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 233 new files
Database: no new tables, 22 new options
New WordPress options |
---|
can_compress_scripts |
fs_active_plugins |
ct_sscl_options_header |
ct_sscl_rating_remind_later |
ct_sscl_no_thanks |
ct_sscl_options_app_settings |
ct_sscl_support_expire_date |
ct_sscl_options_help_guides |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Super Social Content Locker Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲240 | 14.64 ▲0.50 | 5.75 ▲3.93 | 32.31 ▼12.84 |
Dashboard /wp-admin | 2,290 ▲87 | 5.85 ▲0.98 | 113.67 ▲7.50 | 46.87 ▲2.17 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 2.86 ▲0.86 | 45.33 ▲5.08 | 37.17 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,589 ▲57 | 23.64 ▲0.58 | 739.96 ▲53.49 | 42.70 ▼4.22 |
Media Library /wp-admin/upload.php | 1,472 ▲72 | 5.29 ▲1.10 | 103.59 ▲2.57 | 47.96 ▼0.25 |
Settings Panel /wp-admin/edit.php?post_type=ct_sscl&page=sscl_settings_panel | 1,051 | 2.64 | 32.67 | 51.91 |
About Pro /wp-admin/edit.php?post_type=ct_sscl&page=sscl_about_pro_page | 1,909 | 3.31 | 36.61 | 97.02 |
All Content Locker /wp-admin/edit.php?post_type=ct_sscl | 1,182 | 2.82 | 42.23 | 38.07 |
Add New /wp-admin/post-new.php?post_type=ct_sscl | 3,231 | 9.78 | 186.35 | 128.03 |
Super Social Content Locker /wp-admin/admin.php?page=super-social-content-locker-lite | 1,030 | 2.47 | 33.04 | 72.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 22 options
- ct_sscl_install_date
- widget_recent-posts
- ct_sscl_remind_later
- ct_sscl_rating_remind_later
- ct_sscl_verified_purchase
- ct_sscl_options_app_settings
- can_compress_scripts
- ct_sscl_options_change_log
- ct_sscl_options
- ct_sscl_support_expire_date
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ct_sscl&page=sscl_about_pro_page
- > Notice in wp-content/plugins/super-social-content-locker-lite/admin/class-super-social-content-locker-lite-admin.php+634
Undefined variable: codetides_items_output
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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/super-social-content-locker-lite/public/partials/super-social-content-locker-lite-public-display.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/super-social-content-locker-lite/admin/views/super-social-content-locker-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/super-social-content-locker-lite/admin/views/super-social-content-locker-admin-locker-type.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/super-social-content-locker-lite/admin/views/super-social-content-locker-admin-social-options.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/super-social-content-locker-lite/admin/views/super-social-content-locker-admin-preview.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/super-social-content-locker-lite/admin/views/super-social-content-locker-admin-advanced-options.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
super-social-content-locker-lite/super-social-content-locker-lite.php 92% from 13 tests
"Super Social Content Locker Lite" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 431 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected43,689 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 3,929 | 9,269 | 17,195 |
JavaScript | 8 | 3,157 | 2,203 | 13,924 |
PO File | 5 | 1,874 | 1,897 | 4,811 |
CSS | 16 | 151 | 135 | 4,778 |
Sass | 16 | 277 | 82 | 1,713 |
SVG | 6 | 0 | 0 | 1,044 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 32 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,051)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 42.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,051.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 2 | 4.65% |
▷ Concrete classes | 41 | 95.35% |
▷ Final classes | 0 | 0.00% |
Methods | 766 | |
▷ Static methods | 108 | 14.10% |
▷ Public methods | 583 | 76.11% |
▷ Protected methods | 12 | 1.57% |
▷ Private methods | 171 | 22.32% |
Functions | 82 | |
▷ Named functions | 82 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 97 | |
▷ Global constants | 80 | 82.47% |
▷ Class constants | 17 | 17.53% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.38MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/twtweet.png | 0.80KB | 0.58KB | ▼ 27.47% |
admin/images/mailchimp.png | 2.89KB | 2.98KB | 0.00% |
admin/images/csv_export.png | 25.42KB | 11.76KB | ▼ 53.73% |
admin/images/twfollow.png | 6.39KB | 2.80KB | ▼ 56.20% |
admin/images/preview_popup_overlay.png | 20.02KB | 8.09KB | ▼ 59.60% |