71% super-social-content-locker-lite

Code Review | Super Social Content Locker Lite

WordPress plugin Super Social Content Locker Lite scored71%from 54 tests.

About plugin

  • Plugin page: super-social-cont...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2016
  • Latest release: Aug 15, 2022
  • Number of updates: 20
  • Update frequency: every 118.1 days
  • Top authors: codetides (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /4,458 total downloads


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)
PageMemory (MB)CPU Time (ms)
Home /5.61 ▲2.1565.60 ▲20.49
Dashboard /wp-admin5.56 ▲2.2166.35 ▼2.78
Posts /wp-admin/edit.php5.61 ▲2.2566.52 ▲15.60
Add New Post /wp-admin/post-new.php8.10 ▲2.21107.81 ▲4.11
Media Library /wp-admin/upload.php5.45 ▲2.2361.89 ▲24.17
Settings Panel /wp-admin/edit.php?post_type=ct_sscl&page=sscl_settings_panel5.48916.19
About Pro /wp-admin/edit.php?post_type=ct_sscl&page=sscl_about_pro_page5.4649.61
All Content Locker /wp-admin/edit.php?post_type=ct_sscl5.5355.98
Add New /wp-admin/post-new.php?post_type=ct_sscl5.6666.34
Super Social Content Locker /wp-admin/admin.php?page=super-social-content-locker-lite5.651,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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,001 ▲24014.64 ▲0.505.75 ▲3.9332.31 ▼12.84
Dashboard /wp-admin2,290 ▲875.85 ▲0.98113.67 ▲7.5046.87 ▲2.17
Posts /wp-admin/edit.php2,170 ▲702.86 ▲0.8645.33 ▲5.0837.17 ▲0.92
Add New Post /wp-admin/post-new.php1,589 ▲5723.64 ▲0.58739.96 ▲53.4942.70 ▼4.22
Media Library /wp-admin/upload.php1,472 ▲725.29 ▲1.10103.59 ▲2.5747.96 ▼0.25
Settings Panel /wp-admin/edit.php?post_type=ct_sscl&page=sscl_settings_panel1,0512.6432.6751.91
About Pro /wp-admin/edit.php?post_type=ct_sscl&page=sscl_about_pro_page1,9093.3136.6197.02
All Content Locker /wp-admin/edit.php?post_type=ct_sscl1,1822.8242.2338.07
Add New /wp-admin/post-new.php?post_type=ct_sscl3,2319.78186.35128.03
Super Social Content Locker /wp-admin/admin.php?page=super-social-content-locker-lite1,0302.4733.0472.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

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


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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PO File51,8741,8974,811

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 code0.50
Average class complexity42.07
▷ Minimum class complexity1.00
▷ Maximum class complexity1,051.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
▷ Abstract classes24.65%
▷ Concrete classes4195.35%
▷ Final classes00.00%
▷ Static methods10814.10%
▷ Public methods58376.11%
▷ Protected methods121.57%
▷ Private methods17122.32%
▷ Named functions82100.00%
▷ Anonymous functions00.00%
▷ Global constants8082.47%
▷ Class constants1717.53%
▷ Public constants17100.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
FileSize - originalSize - compressedSavings
public/images/twtweet.png0.80KB0.58KB▼ 27.47%
admin/images/csv_export.png25.42KB11.76KB▼ 53.73%
admin/images/twfollow.png6.39KB2.80KB▼ 56.20%
admin/images/preview_popup_overlay.png20.02KB8.09KB▼ 59.60%