84% fwd-social-share

Code Review | FWD Social Share WP Plugin

WordPress plugin FWD Social Share WP Plugin scored84%from 54 tests.

About plugin

  • Plugin page: fwd-social-share
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Jun 19, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: freshwebdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /621 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.03ms] Passed 4 tests

A check of server-side resources used by FWD Social Share WP Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0637.42 ▼3.53
Dashboard /wp-admin3.37 ▲0.0644.63 ▼4.24
Posts /wp-admin/edit.php3.48 ▲0.1248.89 ▼2.20
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.11 ▼25.04
Media Library /wp-admin/upload.php3.29 ▲0.0634.96 ▼3.29

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for FWD Social Share WP Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.59 ▼0.811.58 ▼0.1340.85 ▼4.39
Dashboard /wp-admin2,222 ▲344.86 ▼0.22104.40 ▼11.4138.03 ▼4.04
Posts /wp-admin/edit.php2,105 ▲131.98 ▼0.0233.68 ▼7.6634.05 ▼0.32
Add New Post /wp-admin/post-new.php1,547 ▲2822.91 ▼0.32639.36 ▼53.2752.53 ▼7.49
Media Library /wp-admin/upload.php1,404 ▲134.19 ▲0.0198.26 ▼2.3945.21 ▲0.73

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fwd-social-share/fwd-social-share.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === fwd-social-share === )
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "FWD Social Share WP Plugin" version 1.0
56 characters long description:
A simple WordPress plugin to display social share button

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
No dangerous file extensions were detected898 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS214810512
PHP111925303
SVG11083

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions20
▷ Named functions20100.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