99% social-share-buttons-lite

Code Review | Algori Social Share Buttons

WordPress plugin Algori Social Share Buttons scored 99% from 54 tests.

About plugin

  • Plugin page: social-share-butt...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Aug 31, 2018
  • Latest release: Nov 5, 2021
  • Number of updates: 20
  • Update frequency: every 58.2 days
  • Top authors: kevinbazira (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active / 8,521 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼137.42ms] Passed 4 tests

Analyzing server-side resources used by Algori Social Share Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0235.43 ▲2.66
Dashboard /wp-admin3.07 ▲0.0143.83 ▼1.21
Posts /wp-admin/edit.php3.12 ▲0.0143.28 ▼2.34
Add New Post /wp-admin/post-new.php5.83 ▲0.3995.08 ▼548.50
Media Library /wp-admin/upload.php3.01 ▲0.0135.10 ▲2.39

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Algori Social Share Buttons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,951 ▲36924.10 ▲8.52111.30 ▲102.8866.01 ▲22.25
Dashboard /wp-admin2,981 ▲505.89 ▼0.23123.30 ▼28.27113.66 ▼0.31
Posts /wp-admin/edit.php2,744 ▲82.68 ▼0.0265.21 ▼7.2289.68 ▼6.50
Add New Post /wp-admin/post-new.php2,076 ▲1919.62 ▲0.25356.89 ▼12.17112.26 ▼3.73
Media Library /wp-admin/upload.php1,821 ▲115.04 ▲0.05147.39 ▼2.67122.06 ▲3.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

social-share-buttons-lite/algori-social-share-buttons-lite.php 85% from 13 tests

"Algori Social Share Buttons" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 341 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("social-share-buttons-lite.php" instead of "algori-social-share-buttons-lite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin8,199 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS101,186494,042
SVG2003,460
JavaScript48972426
Markdown1450103
Sass333196
PHP3126259
JSON10013

PHP code Passed 2 tests

A short review 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.14
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected