83% social-sharing-9

Code Review | Social Sharing 9

WordPress plugin Social Sharing 9 scored83%from 54 tests.

About plugin

  • Plugin page: social-sharing-9
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 7, 2019
  • Latest release: Apr 14, 2021
  • Number of updates: 30
  • Update frequency: every 24.6 days
  • Top authors: platcatheo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /644 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.29MB] [CPU: ▼30.43ms] Passed 4 tests

This is a short check of server-side resources used by Social Sharing 9
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.92 ▼0.5417.56 ▼20.91
Dashboard /wp-admin3.16 ▼0.1826.89 ▼32.70
Posts /wp-admin/edit.php3.27 ▼0.0931.95 ▼16.89
Add New Post /wp-admin/post-new.php5.54 ▼0.3566.28 ▼51.20
Media Library /wp-admin/upload.php3.25 ▲0.0228.25 ▼5.98

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 7 new options
New tables
wp_social_sharing_9
New WordPress options
widget_recent-posts
scial_sharing_9_plugin_version
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Social Sharing 9
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲18514.00 ▼0.397.68 ▲5.8039.86 ▼4.26
Dashboard /wp-admin2,248 ▲605.11 ▼0.74114.63 ▲8.9541.30 ▼4.26
Posts /wp-admin/edit.php2,135 ▲462.45 ▲0.4040.16 ▼1.3032.41 ▼6.73
Add New Post /wp-admin/post-new.php1,548 ▲1423.30 ▲0.32674.53 ▲67.7737.56 ▼15.36
Media Library /wp-admin/upload.php1,424 ▲424.50 ▲0.2797.25 ▼1.3141.62 ▼1.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/social-sharing-9/social_sharing_9.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: twitter, facebook, social sharing, pinterest, linkedin...

social-sharing-9/social_sharing_9.php 77% from 13 tests

The principal PHP file in "Social Sharing 9" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-sharing-9.php" instead of "social_sharing_9.php")

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
Success! There were no dangerous files found in this plugin9,455 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS675192,581
Sass1434341,768
LESS1434441,758
PHP223582594
JavaScript2562583

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity69.00
▷ Minimum class complexity69.00
▷ Maximum class complexity69.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin