10% fast-easy-social-sharing

Code Review | Fast & Easy Social Sharing

WordPress plugin Fast & Easy Social Sharing scored10%from 54 tests.

About plugin

  • Plugin page: fast-easy-social-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2014
  • Latest release: Mar 10, 2014
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: vskylabv (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /7,835 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/fast-easy-social-sharing/fess-admin.php+170
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.16ms] Passed 4 tests

An overview of server-side resources used by Fast & Easy Social Sharing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.69 ▼0.76
Dashboard /wp-admin3.31 ▲0.0062.47 ▲9.88
Posts /wp-admin/edit.php3.36 ▲0.0046.07 ▼6.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.32 ▼0.85
Media Library /wp-admin/upload.php3.23 ▲0.0035.85 ▼0.65

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Fast & Easy Social Sharing: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.09 ▼0.561.69 ▼0.1644.77 ▼0.55
Dashboard /wp-admin2,195 ▲285.64 ▼0.0187.53 ▼20.8141.04 ▼2.40
Posts /wp-admin/edit.php2,097 ▼02.01 ▼0.0032.62 ▼7.7333.16 ▼2.52
Add New Post /wp-admin/post-new.php1,526 ▼222.94 ▼0.25677.32 ▼41.0554.67 ▲0.35
Media Library /wp-admin/upload.php1,394 ▼94.20 ▼0.0298.07 ▲3.1142.24 ▼6.75

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fast-easy-social-sharing/fasteasysocialsharing.php:12
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/fast-easy-social-sharing/fess-admin.php on line 170

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (18 tag instead of maximum 10)
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.png Look and feel.), #2 (screenshot-2.png Hover state. Full opacity on hover.)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === fast-easy-social-sharing === )
Please take inspiration from this readme.txt

fast-easy-social-sharing/fasteasysocialsharing.php 85% from 13 tests

The main PHP file in "Fast & Easy Social Sharing" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("fast-easy-social-sharing.php" instead of "fasteasysocialsharing.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin335 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP23525200
CSS110190
Markdown211029
SVG10016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions7
▷ Named functions7100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png4.06KB3.17KB▼ 21.90%
screenshot-2.png5.45KB4.57KB▼ 16.09%