88% ve-social-share-buttons

Code Review | VE Social Share Buttons

WordPress plugin VE Social Share Buttons scored 88% from 54 tests.

About plugin

  • Plugin page: ve-social-share-b...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 5.8.1
  • First release: Dec 16, 2016
  • Latest release: Apr 6, 2018
  • Number of updates: 4
  • Update frequency: every 118.0 days
  • Top authors: virtualemployee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 677 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼139.71ms] Passed 4 tests

This is a short check of server-side resources used by VE Social Share Buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1350.53 ▲29.16
Dashboard /wp-admin3.08 ▲0.0252.89 ▲4.65
Posts /wp-admin/edit.php3.13 ▲0.0148.74 ▼11.17
Add New Post /wp-admin/post-new.php5.44 ▲0.0094.60 ▼554.53
Media Library /wp-admin/upload.php3.02 ▲0.0241.94 ▲2.23
VE Social Share Buttons /wp-admin/options-general.php?page=ve-social-share-buttons2.9733.78

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for VE Social Share Buttons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲4715.80 ▼0.2310.47 ▼5.7354.07 ▼0.96
Dashboard /wp-admin2,972 ▲415.92 ▼0.12161.49 ▼14.34119.62 ▲3.83
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0081.50 ▲4.9685.78 ▼11.90
Add New Post /wp-admin/post-new.php1,597 ▲12018.56 ▲0.19421.06 ▼21.63127.78 ▲7.18
Media Library /wp-admin/upload.php1,812 ▲645.02 ▲0.03180.80 ▲17.76125.20 ▼6.17
VE Social Share Buttons /wp-admin/options-general.php?page=ve-social-share-buttons1,1722.0876.7483.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ve-social-share-buttons
    • > Warning in wp-content/plugins/ve-social-share-buttons/ve-social-share-buttons.php+87
    in_array() expects parameter 2 to be array, bool given

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ve-social-share-buttons/lib/class.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Donate link: Invalid url: ""
The official readme.txt might help

ve-social-share-buttons/ve-social-share-buttons.php 92% from 13 tests

"VE Social Share Buttons" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected219 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22952157
CSS11244
SVG16018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin