94% wp-socialight

Code Review | WP-Socialight

WordPress plugin WP-Socialight scored 94% from 54 tests.

About plugin

  • Plugin page: wp-socialight
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 5.8.1
  • First release: Oct 28, 2016
  • Latest release: Jan 1, 2017
  • Number of updates: 55
  • Update frequency: every 1.2 days
  • Top authors: roeeyossef (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 1,016 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by WP-Socialight
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0435.91 ▲3.56
Dashboard /wp-admin3.11 ▲0.0544.40 ▼0.92
Posts /wp-admin/edit.php3.16 ▲0.0543.68 ▲1.54
Add New Post /wp-admin/post-new.php5.46 ▲0.0390.75 ▼567.27
Media Library /wp-admin/upload.php3.05 ▲0.0531.94 ▼4.97
WP-SociaLight /wp-admin/options-general.php?page=wp-socialight3.0229.82

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP-Socialight: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,819 ▲22416.27 ▲0.6914.10 ▲4.9749.17 ▼3.11
Dashboard /wp-admin2,974 ▲406.12 ▲0.22132.62 ▼19.66110.54 ▼9.52
Posts /wp-admin/edit.php2,746 ▲72.72 ▲0.0172.71 ▲11.5297.14 ▲0.45
Add New Post /wp-admin/post-new.php1,677 ▲17718.92 ▲0.48377.38 ▲33.73113.04 ▲2.40
Media Library /wp-admin/upload.php1,820 ▲165.03 ▼0.00145.47 ▼2.87119.45 ▲5.98
WP-SociaLight /wp-admin/options-general.php?page=wp-socialight1,1602.0953.4582.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-socialight/wp-socialight.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-socialight/wp-socialight.php Passed 13 tests

The main PHP script in "WP-Socialight" version 2.4 is automatically included on every request by WordPress
86 characters long description:
מציג כפתורי שיתוף לרשתות חברתיות באתרי וורדפרס

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected642 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS3420259
PHP1327179
SVG110169
JavaScript212235

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin