84% wpupper-share-buttons

Code Review | WPUpper Share Buttons

WordPress plugin WPUpper Share Buttons scored84%from 54 tests.

About plugin

  • Plugin page: wpupper-share-but...
  • Plugin version: 3.43
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2016
  • Latest release: May 19, 2023
  • Number of updates: 129
  • Update frequency: every 20.4 days
  • Top authors: victorfreitas (100%)

Code review

54 tests

User reviews

192 reviews

Install metrics

7,000+ active /218,556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲1.29MB] [CPU: ▲5.46ms] Passed 4 tests

Analyzing server-side resources used by WPUpper Share Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.48 ▲1.0347.35 ▲9.09
Dashboard /wp-admin4.69 ▲1.3852.02 ▲6.34
Posts /wp-admin/edit.php4.80 ▲1.4456.74 ▲9.52
Add New Post /wp-admin/post-new.php7.27 ▲1.39100.28 ▼0.79
Media Library /wp-admin/upload.php4.61 ▲1.3843.31 ▲7.20
Use options /wp-admin/admin.php?page=wpusb-faq4.7245.17
Custom CSS /wp-admin/admin.php?page=wpusb-custom-css4.7348.85
Sharing Report /wp-admin/admin.php?page=wpusb-sharing-report4.7249.68
WPUpper Share /wp-admin/admin.php?page=wpusb4.7247.83
Extra Settings /wp-admin/admin.php?page=wpusb-extra-settings4.7244.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 161 new files
Database: 2 new tables, 13 new options
New tables
wp_wpusb_report
wp_wpusb_url_shortener
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
wpusb_social_media
wpusb_settings
widget_widget-wpusb
wpusb_extra_settings
widget_recent-comments
widget_widget-wpusb-follow
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for WPUpper Share Buttons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10413.20 ▼1.151.67 ▼0.1038.92 ▼7.14
Dashboard /wp-admin2,245 ▲634.87 ▼1.0296.03 ▼11.8739.65 ▼0.74
Posts /wp-admin/edit.php2,128 ▲391.97 ▼0.0240.57 ▼0.0235.46 ▼0.58
Add New Post /wp-admin/post-new.php6,321 ▲4,80719.62 ▲2.07854.21 ▲239.3256.70 ▲7.58
Media Library /wp-admin/upload.php1,427 ▲454.25 ▲0.0296.99 ▼0.2342.83 ▼2.78
Use options /wp-admin/admin.php?page=wpusb-faq2,4982.9046.3457.55
Custom CSS /wp-admin/admin.php?page=wpusb-custom-css1,7073.2352.8770.67
Sharing Report /wp-admin/admin.php?page=wpusb-sharing-report1,6682.6533.9633.49
WPUpper Share /wp-admin/admin.php?page=wpusb3,0113.4371.9452.81
Extra Settings /wp-admin/admin.php?page=wpusb-extra-settings1,9682.7448.3344.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_widget-wpusb-follow
    • db_upgraded
    • widget_widget-wpusb
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • wpusb_plugin_version

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)
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpupper-share-buttons/assets/svg/icons.php
    • > /wp-content/plugins/wpupper-share-buttons/assets/svg/icons-follow.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires php: Invalid version format
You can look at the official readme.txt

wpupper-share-buttons/wpupper-share-buttons.php Passed 13 tests

This is the main PHP file of "WPUpper Share Buttons" version 3.43, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
78 characters long description:
The social share buttons. The buttons are inserted automatically, beautifully.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin37,342 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
PO File388,98110,61220,528
JavaScript141,0919749,133
PHP381,6593,9317,275
CSS65729406

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.88
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes26.06%
▷ Concrete classes3193.94%
▷ Final classes26.45%
Methods479
▷ Static methods32267.22%
▷ Public methods38279.75%
▷ Protected methods347.10%
▷ Private methods6313.15%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants29.52%
▷ Class constants1990.48%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin