78% social-media-sharing-by-fvp

Code Review | Social Media Sharing by FVP

WordPress plugin Social Media Sharing by FVP scored78%from 54 tests.

About plugin

  • Plugin page: social-media-shar...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.7
  • WordPress version: 6.3.1
  • First release: Jul 27, 2016
  • Latest release: Nov 18, 2016
  • Number of updates: 7
  • Update frequency: every 16.3 days
  • Top authors: franvipa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Social Media Sharing by FVP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.62 ▼2.59
Dashboard /wp-admin3.37 ▲0.0745.42 ▼2.89
Posts /wp-admin/edit.php3.42 ▲0.0648.70 ▼0.28
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.63 ▼20.21
Media Library /wp-admin/upload.php3.29 ▲0.0636.49 ▲2.95
Customize /wp-admin/admin.php?page=fvp_social_media_plugin_customize3.2631.48
Settings /wp-admin/admin.php?page=fvp_social_media_plugin_settings3.2632.88

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Social Media Sharing by FVP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.35 ▼0.011.65 ▼0.3039.89 ▼6.42
Dashboard /wp-admin2,215 ▲355.54 ▼0.1187.83 ▲1.2639.30 ▼2.87
Posts /wp-admin/edit.php2,120 ▲201.97 ▼0.0135.60 ▼5.1332.96 ▼3.34
Add New Post /wp-admin/post-new.php1,545 ▲1723.10 ▲0.01647.59 ▼21.1855.86 ▼17.99
Media Library /wp-admin/upload.php1,420 ▲204.18 ▼0.0398.55 ▲2.7340.59 ▼8.10
Customize /wp-admin/admin.php?page=fvp_social_media_plugin_customize1,0181.8224.9831.16
Settings /wp-admin/admin.php?page=fvp_social_media_plugin_settings9131.9334.3728.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/social-media-sharing-by-fvp/fvp-social-media.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-media-sharing-by-fvp/inc/core.php:91
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/social-media-sharing-by-fvp/inc/templates/settings-panel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/social-media-sharing-by-fvp/inc/templates/customize-panel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/social-media-sharing-by-fvp/inc/panels.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

social-media-sharing-by-fvp/fvp-social-media.php 92% from 13 tests

The entry point to "Social Media Sharing by FVP" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-media-sharing-by-fvp.php" instead of "fvp-social-media.php")

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
Success! There were no dangerous files found in this plugin1,409 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
CSS24731482
PHP77336232
JavaScript11010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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

All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/type1.png7.51KB3.81KB▼ 49.26%
assets/screenshot-3.png81.27KB27.27KB▼ 66.44%
img/type10.png4.42KB2.29KB▼ 48.10%
img/type11.png3.96KB1.49KB▼ 62.22%
assets/screenshot-2.png33.25KB12.00KB▼ 63.91%