78% jcwp-like-to-unlock-lite

Code Review | Like to Unlock lite

WordPress plugin Like to Unlock lite scored78%from 54 tests.

About plugin

  • Plugin page: jcwp-like-to-unlo...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-4.2
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: Apr 16, 2015
  • Number of updates: 3
  • Update frequency: every 231.0 days
  • Top authors: jaschahal (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /3,869 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.39ms] Passed 4 tests

An overview of server-side resources used by Like to Unlock lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.66 ▼3.72
Dashboard /wp-admin3.46 ▲0.1645.26 ▼6.05
Posts /wp-admin/edit.php3.57 ▲0.2247.78 ▲1.70
Add New Post /wp-admin/post-new.php6.04 ▲0.1585.25 ▼5.49
Media Library /wp-admin/upload.php3.38 ▲0.1535.48 ▲2.49
JCWP Like to Unlock /wp-admin/options-general.php?page=jcorgStpLtU-plugin3.3228.42

Server storage [IO: ▲0.15MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 14 new options
New WordPress options
jcorgltu_width
db_upgraded
jcorgltu_active
widget_recent-comments
jcorgltu_font
jcorgltu_show_faces
jcorgltu_colorscheme
widget_theysaidso_widget
theysaidso_admin_options
jcorgltu_facebook_app_id
...

Browser metrics Passed 4 tests

A check of browser resources used by Like to Unlock lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲22514.11 ▼0.277.89 ▲6.1042.81 ▲1.21
Dashboard /wp-admin2,210 ▲194.82 ▼1.08113.21 ▲13.5941.27 ▲3.46
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0040.56 ▲4.6138.65 ▲2.22
Add New Post /wp-admin/post-new.php1,537 ▲2323.38 ▲5.79671.58 ▲9.4455.16 ▲1.59
Media Library /wp-admin/upload.php1,386 ▲44.18 ▲0.0097.63 ▲1.9142.16 ▼3.18
JCWP Like to Unlock /wp-admin/options-general.php?page=jcorgStpLtU-plugin1,0432.2026.1829.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 14 options
    • jcorgltu_text_to_display
    • jcorgltu_facebook_app_id
    • jcorgltu_show_faces
    • theysaidso_admin_options
    • jcorgltu_hide
    • widget_theysaidso_widget
    • jcorgltu_width
    • jcorgltu_font
    • can_compress_scripts
    • widget_recent-posts
    • ...

Smoke tests 50% 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
    • > GET request to /wp-admin/options-general.php?page=jcorgStpLtU-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=jcorgStpLtU-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jcwp-like-to-unlock-lite/jcwp-like-to-unlock-lite.php:26

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 errors were detected

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 require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings - screenshot-1.png), #2 (Usage - screenshot-2.png)
You can look at the official readme.txt

jcwp-like-to-unlock-lite/jcwp-like-to-unlock-lite.php 92% from 13 tests

Analyzing the main PHP file in "Like to Unlock lite" version 1.1
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 283 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin716 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2173245715
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.89
Average class complexity104.00
▷ Minimum class complexity104.00
▷ Maximum class complexity104.00
Average method complexity6.15
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screentshot-1.png29.90KB15.87KB▼ 46.92%
LTU.png66.10KB36.62KB▼ 44.60%
screentshot-2.png4.07KB2.20KB▼ 46.05%