78% flodjishare

Code Review | flodjiShare

WordPress plugin flodjiShare scored 78% from 54 tests.

About plugin

  • Plugin page: flodjishare
  • Plugin version: 5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0.3
  • WordPress version: 5.8.1
  • First release: Dec 14, 2012
  • Latest release: Jan 28, 2019
  • Number of updates: 51
  • Update frequency: every 43.8 days
  • Top authors: flodji (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 4,495 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.59MB] [CPU: ▼179.94ms] Passed 4 tests

Analyzing server-side resources used by flodjiShare
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.17 ▲0.4549.16 ▲18.74
Dashboard /wp-admin3.06 ▲0.0126.41 ▼24.00
Posts /wp-admin/edit.php3.06 ▼0.0423.35 ▼26.19
Add New Post /wp-admin/post-new.php3.06 ▼2.3726.91 ▼663.24
Media Library /wp-admin/upload.php3.06 ▲0.0626.16 ▼6.32
flodjiShare /wp-admin/options-general.php?page=flodjishare_einstellungen3.0626.82

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for flodjiShare
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.97 ▼0.058.84 ▼2.0648.03 ▼0.07
Dashboard /wp-admin2,972 ▲385.92 ▼0.26144.94 ▼18.34111.00 ▼5.19
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0066.17 ▼4.2889.90 ▼3.53
Add New Post /wp-admin/post-new.php1,503 ▼18018.51 ▲0.11419.18 ▼4.70117.44 ▲6.08
Media Library /wp-admin/upload.php1,753 ▼544.98 ▼0.05184.70 ▲7.26120.18 ▼7.15
flodjiShare /wp-admin/options-general.php?page=flodjishare_einstellungen1,8722.1062.33104.24

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
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer 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=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+783
    Undefined variable: checked_fs_single_posts
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+790
    Undefined variable: checked_fs_single_pages
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+821
    Undefined variable: checked_fs_categories
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+828
    Undefined variable: checked_fs_search
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+835
    Undefined variable: checked_fs_archive
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+848
    Undefined variable: checked_fs_facebook_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+855
    Undefined variable: checked_fs_twitter_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+867
    Undefined variable: checked_fs_digg_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+874
    Undefined variable: checked_fs_delicious_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+881
    Undefined variable: checked_fs_xing_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+888
    Undefined variable: checked_fs_gplus_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+895
    Undefined variable: checked_fs_linkedin_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+902
    Undefined variable: checked_fs_pinterest_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+909
    Undefined variable: checked_fs_stumbleupon_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+916
    Undefined variable: checked_fs_flattr_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+928
    Undefined variable: checked_fs_tumblr_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+935
    Undefined variable: checked_fs_pocket_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+942
    Undefined variable: checked_fs_feedly_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+949
    Undefined variable: checked_fs_whatsapp_share
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+983
    Undefined variable: checked_fs_active_counter
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+990
    Undefined variable: checked_fs_active_flatmix
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+1002
    Undefined variable: checked_fs_active_align
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+1009
    Undefined variable: checked_fs_active_big
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+1032
    Undefined variable: checked_fs_active_sharebar
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+1049
    Undefined variable: checked_fs_active_post_stats
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+1056
    Undefined variable: checked_fs_active_fs_hit_column
    • > GET request to /wp-admin/options-general.php?page=flodjishare_einstellungen
    • > Notice in wp-content/plugins/flodjishare/flodjishare.php+1078
    Undefined variable: checked_fs_deactivate_supportlink

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 384× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/flodjishare/klick.php on line 397

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Standard-Buttons im Einsatz), #2 (CSS-Design Buttons im Einsatz), #3 (Das neue Flat Design)
  • Tags: You are using too many tags: 18 tag instead of maximum 10
You can take inspiration from this readme.txt

flodjishare/flodjishare.php Passed 13 tests

The entry point to "flodjiShare" version 5.2 is a PHP file that has certain tags in its header comment area
104 characters long description:
Let Visitors share your Posts, Pages and Custom Post Types on these social networks to increase traffic.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,619 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3100111,424
PO File18387182
CSS1009
HTML1004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions43
▷ Named functions43100.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
36 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
buttons/flattr.png0.42KB0.67KB0.00%
buttons/Pinterest32px.png0.36KB0.32KB▼ 11.08%
buttons/Twitter64px.png0.46KB0.42KB▼ 8.15%
buttons/Tumblr64px.png0.34KB0.30KB▼ 11.56%
screenshot-3.png4.32KB4.30KB0.43%