79% wp-like-comment-share

Code Review | WP Like, Comment & Share

WordPress plugin WP Like, Comment & Share scored79%from 54 tests.

About plugin

  • Plugin page: wp-like-comment-s...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2019
  • Latest release: Aug 17, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: creativeartbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by WP Like, Comment & Share
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.25 ▲2.95
Dashboard /wp-admin3.34 ▲0.0448.54 ▼4.88
Posts /wp-admin/edit.php3.39 ▲0.0451.37 ▲4.80
Add New Post /wp-admin/post-new.php5.94 ▲0.0695.74 ▲3.62
Media Library /wp-admin/upload.php3.26 ▲0.0441.49 ▲1.59
WP Comment Settings /wp-admin/admin.php?page=fblcs3.2336.10
WP Share Settings /wp-admin/admin.php?page=fblcs-share-settings3.2336.70
WP Like Settings /wp-admin/admin.php?page=fblcs-like-settings3.2334.56

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 18 new options
New WordPress options
fblcs_c_color
fblcs_s_href_auto
fblcs_l_action
db_upgraded
fblcs_l_href_auto
fblcs_c_order_by
widget_recent-comments
theysaidso_admin_options
fblcs_c_mobile_optimize
fblcs_l_color
...

Browser metrics Passed 4 tests

Checking browser requirements for WP Like, Comment & Share
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲21214.52 ▼0.0742.78 ▲40.8439.34 ▼4.70
Dashboard /wp-admin2,243 ▲555.87 ▼0.02103.80 ▼13.4472.82 ▲31.43
Posts /wp-admin/edit.php2,126 ▲372.05 ▲0.0341.13 ▲4.2137.20 ▲2.41
Add New Post /wp-admin/post-new.php1,700 ▲16322.36 ▼0.87655.55 ▼38.5353.36 ▲5.65
Media Library /wp-admin/upload.php1,425 ▲374.15 ▼0.0298.49 ▼35.0582.62 ▲30.48
WP Comment Settings /wp-admin/admin.php?page=fblcs1,1681.7225.2830.74
WP Share Settings /wp-admin/admin.php?page=fblcs-share-settings1,0711.7125.4332.08
WP Like Settings /wp-admin/admin.php?page=fblcs-like-settings1,4911.7230.8033.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • fblcs_s_size

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-like-comment-share/admin/class-fblcs-admin.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=fblcs-like-settings
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=fblcs-like-settings 356 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: social comment, facebook comment, facebook like, social share, social like...

wp-like-comment-share/wp-like-comment-share.php Passed 13 tests

The main PHP script in "WP Like, Comment & Share" version 1.0.0 is automatically included on every request by WordPress
75 characters long description:
Using this plugin you can like, comment and share any post and page easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,622 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP121441111,500
JavaScript115275
CSS27047

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity23.11
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity5.06
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods49
▷ Static methods24.08%
▷ Public methods4897.96%
▷ Protected methods00.00%
▷ Private methods12.04%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/fblcs-icon.png0.32KB0.30KB▼ 6.10%