90% lsx-sharing

Code Review | LSX Sharing

WordPress plugin LSX Sharing scored90%from 54 tests.

About plugin

  • Plugin page: lsx-sharing
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 38
  • Update frequency: every 52.1 days
  • Top authors: feedmymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,735 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.77ms] Passed 4 tests

A check of server-side resources used by LSX Sharing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.37 ▼5.94
Dashboard /wp-admin3.36 ▲0.0644.90 ▼4.10
Posts /wp-admin/edit.php3.41 ▲0.0645.64 ▼0.43
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.07 ▼8.61
Media Library /wp-admin/upload.php3.28 ▲0.0637.20 ▲6.71

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for LSX Sharing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.30 ▼1.261.88 ▲0.0242.09 ▼0.55
Dashboard /wp-admin2,206 ▲214.85 ▼0.96106.89 ▼6.7237.99 ▼6.76
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0241.03 ▲6.2434.90 ▲3.18
Add New Post /wp-admin/post-new.php6,249 ▲4,70719.56 ▼3.43899.09 ▲197.0562.93 ▲10.50
Media Library /wp-admin/upload.php1,385 ▼34.25 ▼0.0396.38 ▼13.1143.28 ▼4.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #3, #4 in lsx-sharing/assets to your readme.txt
The official readme.txt might help

lsx-sharing/lsx-sharing.php Passed 13 tests

"LSX Sharing" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
63 characters long description:
The LSX Sharing extension add social share icons for LSX Theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected832 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1633126256
PHP33891206
JSON400139
CSS21315122
Markdown253080
PO File17929

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin