78% lets-users-follow-you-on-social-media

Code Review | Lets Users Follow you on social media

WordPress plugin Lets Users Follow you on social media scored78%from 54 tests.

About plugin

  • Plugin page: lets-users-follow...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Jun 6, 2022
  • Latest release: Jun 6, 2022
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: dhananjay22a (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.39ms] Passed 4 tests

Analyzing server-side resources used by Lets Users Follow you on social media
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0339.61 ▲0.59
Dashboard /wp-admin3.34 ▲0.0446.37 ▼7.51
Posts /wp-admin/edit.php3.39 ▲0.0449.97 ▲1.44
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.57 ▼8.54
Media Library /wp-admin/upload.php3.27 ▲0.0432.77 ▼2.11

Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Lets Users Follow you on social media: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.22 ▼1.161.74 ▲0.0043.61 ▲5.97
Dashboard /wp-admin2,229 ▲385.87 ▲1.0098.39 ▼1.4339.92 ▼3.61
Posts /wp-admin/edit.php2,109 ▲172.06 ▲0.0435.32 ▼7.0032.97 ▼4.75
Add New Post /wp-admin/post-new.php1,534 ▲1123.57 ▲0.32647.70 ▲46.8850.20 ▼1.33
Media Library /wp-admin/upload.php1,411 ▲204.19 ▲0.0395.91 ▼3.1342.73 ▲0.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • pcpl_welcome
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lets-users-follow-you-on-social-media/pcpl-follow.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/lets-users-follow-you-on-social-media/templates/admin-panel.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: lets users follow you on social media

lets-users-follow-you-on-social-media/pcpl-follow.php 85% from 13 tests

The entry point to "Lets Users Follow you on social media" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lets-users-follow-you-on-social-media.php" instead of "pcpl-follow.php")

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
No dangerous file extensions were detected232 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27658193
CSS13020
JavaScript112719

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png140.31KB58.81KB▼ 58.09%
assets/screenshot-1.png10.84KB6.23KB▼ 42.56%
assets/screenshot-3.png19.39KB9.97KB▼ 48.58%
assets/screenshot-4.png29.87KB15.90KB▼ 46.75%
assets/screenshot-5.png38.92KB12.43KB▼ 68.05%