89% pluginsify-social-share

Code Review | Pluginsify Social Share

WordPress plugin Pluginsify Social Share scored89%from 54 tests.

About plugin

  • Plugin page: pluginsify-social...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3
  • WordPress version: 6.3.1
  • First release: Feb 8, 2020
  • Latest release: Feb 12, 2020
  • Number of updates: 6
  • Update frequency: every 1.3 days
  • Top authors: pluginsify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /394 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.76ms] Passed 4 tests

Analyzing server-side resources used by Pluginsify Social Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1044.71 ▼1.65
Dashboard /wp-admin3.39 ▲0.0852.71 ▼0.38
Posts /wp-admin/edit.php3.50 ▲0.1450.42 ▲3.07
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.96 ▼12.06
Media Library /wp-admin/upload.php3.31 ▲0.0842.44 ▲3.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
tpl_social_settings
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Pluginsify Social Share: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲12713.43 ▼0.9410.33 ▲8.2245.69 ▲1.14
Dashboard /wp-admin2,204 ▲245.51 ▼0.0691.46 ▼5.1641.91 ▼0.80
Posts /wp-admin/edit.php2,112 ▲121.98 ▼0.0235.72 ▼1.8134.21 ▼3.37
Add New Post /wp-admin/post-new.php1,538 ▲1222.95 ▼0.66668.27 ▼14.6355.61 ▲4.41
Media Library /wp-admin/upload.php1,412 ▲94.12 ▼0.14111.38 ▼1.0950.26 ▲2.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Easy to customize color for social media icons), #2 (Easy to setup the position for social icons)
You can take inspiration from this readme.txt

pluginsify-social-share/pluginsify-social-share.php 92% from 13 tests

The main PHP file in "Pluginsify Social Share" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,253 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP6150246508
CSS3718496
Sass2331194
JavaScript37139
SVG14016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.00
▷ Minimum class complexity5.00
▷ Maximum class complexity25.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods13.12%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin