78% eds-social-share

Code Review | Ed's Social Share

WordPress plugin Ed's Social Share scored78%from 54 tests.

About plugin

  • Plugin page: eds-social-share
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2022
  • Latest release: Sep 22, 2022
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: waianaeboy702 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /279 total downloads

Benchmarks

Plugin footprint 83% from 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.05MB] [CPU: ▼9.24ms] Passed 4 tests

This is a short check of server-side resources used by Ed's Social Share
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0548.27 ▲0.97
Dashboard /wp-admin3.37 ▲0.0251.62 ▼16.35
Posts /wp-admin/edit.php3.42 ▲0.0654.32 ▼0.67
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.66 ▼19.29
Media Library /wp-admin/upload.php3.29 ▲0.0637.34 ▼0.65
Dashboard /wp-admin/admin.php?page=ess_dashboard_admin_page3.2635.04
Plugin Options /wp-admin/admin.php?page=essp_options_admin_page3.2630.45

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Ed's Social Share
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3514.28 ▲0.001.92 ▼0.2346.24 ▲2.75
Dashboard /wp-admin2,219 ▲425.50 ▼0.0287.54 ▼3.8039.50 ▼0.98
Posts /wp-admin/edit.php2,130 ▲271.94 ▼0.0537.04 ▼6.2036.89 ▼3.18
Add New Post /wp-admin/post-new.php1,548 ▲2223.36 ▲0.37644.01 ▼68.9549.76 ▼5.99
Media Library /wp-admin/upload.php1,427 ▲244.18 ▼0.0799.94 ▼6.5241.77 ▼3.25
Dashboard /wp-admin/admin.php?page=ess_dashboard_admin_page8902.0023.4730.54
Plugin Options /wp-admin/admin.php?page=essp_options_admin_page8852.0123.5024.15

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eds-social-share/eds_social_share.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=ess_dashboard_admin_page
    • > Network (severe)
    wp-content/plugins/eds-social-share/assets/banner-772x250.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% 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: The official readme.txt might help

eds-social-share/eds_social_share.php 85% from 13 tests

The main PHP script in "Ed's Social Share" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eds-social-share.php" instead of "eds_social_share.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected472 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15443325
CSS232109
Markdown119038

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected