73% essential-social-share

Code Review | Essential Social Share

WordPress plugin Essential Social Share scored 73% from 54 tests.

About plugin

  • Plugin page: essential-social-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7
  • WordPress version: 6.3.1
  • First release: Nov 7, 2016
  • Latest release: Mar 6, 2017
  • Number of updates: 6
  • Update frequency: every 20.2 days
  • Top authors: Essential Marketer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.91ms] Passed 4 tests

Analyzing server-side resources used by Essential Social Share
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.53 ▼0.27
Dashboard /wp-admin3.34 ▲0.0443.78 ▼6.49
Posts /wp-admin/edit.php3.39 ▲0.0446.64 ▼0.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.36 ▼8.10
Media Library /wp-admin/upload.php3.26 ▲0.0435.82 ▲1.61
Essential Social Share /wp-admin/options-general.php?page=essential-social-share3.2329.40

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Essential Social Share
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.59 ▼0.791.56 ▼0.3641.12 ▼4.44
Dashboard /wp-admin2,210 ▲224.87 ▼1.13112.40 ▲7.2842.58 ▼2.68
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0240.37 ▲4.9035.34 ▲3.24
Add New Post /wp-admin/post-new.php1,545 ▲1218.07 ▼5.17603.55 ▼73.8249.51 ▼3.46
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0598.71 ▼1.0946.28 ▲3.18
Essential Social Share /wp-admin/options-general.php?page=essential-social-share9552.0539.9830.43

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 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 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/essential-social-share/essential-social-share.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/essential-social-share/admin/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/essential-social-share/essential_social_share_functions.php:40

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=essential-social-share
    • > Network (severe)
    wp-content/plugins/essential-social-share/admin/css/essential-social-share.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: social media icons, social share, social media sharing, essential social share

essential-social-share/essential-social-share.php Passed 13 tests

"Essential Social Share" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
92 characters long description:
Easily add in buttons that enable user to share your content on their social media profiles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin263 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32720225
CSS25338

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin