68% fshare

Code Review | fShare

WordPress plugin fShare scored68%from 54 tests.

About plugin

  • Plugin page: fshare
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 6.3.1
  • First release: Jan 17, 2019
  • Latest release: Mar 17, 2020
  • Number of updates: 5
  • Update frequency: every 85.6 days
  • Top authors: flodji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /660 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼33.99ms] Passed 4 tests

Server-side resources used by fShare
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.86 ▼1.97
Dashboard /wp-admin2.99 ▼0.3122.27 ▼27.95
Posts /wp-admin/edit.php3.00 ▼0.3622.01 ▼25.65
Add New Post /wp-admin/post-new.php2.99 ▼2.8923.05 ▼69.90
Media Library /wp-admin/upload.php2.99 ▼0.2320.56 ▼12.47
fShare /wp-admin/options-general.php?page=fshare_einstellungen3.0022.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for fShare
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.33 ▼1.071.67 ▼0.2141.94 ▼9.78
Dashboard /wp-admin2,210 ▲254.85 ▼1.01109.35 ▲4.1042.29 ▼0.43
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0039.07 ▲3.1535.06 ▲2.33
Add New Post /wp-admin/post-new.php1,545 ▲1518.58 ▲0.41586.54 ▼36.8847.86 ▼7.32
Media Library /wp-admin/upload.php1,389 ▼24.19 ▲0.0199.81 ▲1.5343.96 ▼1.24
fShare /wp-admin/options-general.php?page=fshare_einstellungen1,0902.0628.8531.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+234
    Undefined variable: checked_fs_single_posts
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+241
    Undefined variable: checked_fs_single_pages
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+278
    Undefined variable: checked_fs_facebook_share
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+285
    Undefined variable: checked_fs_twitter_share
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+292
    Undefined variable: checked_fs_xing_share
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+299
    Undefined variable: checked_fs_pinterest_share
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+306
    Undefined variable: checked_fs_pocket_share
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+313
    Undefined variable: checked_fs_feedly_share
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+320
    Undefined variable: checked_fs_whatsapp_share
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+343
    Undefined variable: checked_fs_active_align
    • > GET request to /wp-admin/options-general.php?page=fshare_einstellungen
    • > Notice in wp-content/plugins/fshare/fshare.php+386
    Undefined variable: checked_fs_deactivate_supportlink

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
The following issues need your attention
  • 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/fshare/fshare.php:14

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (screenshot-1.jpg) image not found
The official readme.txt is a good inspiration

fshare/fshare.php 92% from 13 tests

The main file in "fShare" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin450 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24410353
PO File1537088
CSS1009

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin