78% super-easy-social-share

Code Review | Super Easy Social Share

WordPress plugin Super Easy Social Share scored78%from 54 tests.

About plugin

  • Plugin page: super-easy-social...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 6.3.1
  • First release: Dec 5, 2018
  • Latest release: Dec 8, 2018
  • Number of updates: 7
  • Update frequency: every 25.7 days
  • Top authors: studioexcel (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /641 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.62MB] [CPU: ▼20.42ms] Passed 4 tests

This is a short check of server-side resources used by Super Easy Social Share
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.62 ▼1.47
Dashboard /wp-admin3.38 ▲0.0349.59 ▼12.73
Posts /wp-admin/edit.php3.49 ▲0.1351.76 ▼3.17
Add New Post /wp-admin/post-new.php3.22 ▼2.6636.62 ▼64.32
Media Library /wp-admin/upload.php3.30 ▲0.0744.04 ▲5.21
SE Social Share /wp-admin/options-general.php?page=social-share3.2431.42

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
se-social-share
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Super Easy Social Share
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3814.33 ▼0.081.55 ▼0.4741.05 ▼8.26
Dashboard /wp-admin2,202 ▲225.62 ▲0.0586.48 ▼4.1940.63 ▼3.84
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0239.67 ▼0.9632.48 ▼6.42
Add New Post /wp-admin/post-new.php1,531 ▲523.18 ▼0.14694.79 ▼6.9054.26 ▼8.58
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.01112.59 ▲7.5448.03 ▲0.91
SE Social Share /wp-admin/options-general.php?page=social-share9802.0025.4529.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • se-social-share

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=social-share
    • > Notice in wp-content/plugins/super-easy-social-share/se-social-share.php+215
    Undefined index: prompt
    • > GET request to /wp-admin/options-general.php?page=social-share
    • > Notice in wp-content/plugins/super-easy-social-share/se-social-share.php+229
    Undefined index: below
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=social-share
    • > Notice in wp-content/plugins/super-easy-social-share/se-social-share.php+265
    Undefined index: shape
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=social-share
    • > Notice in wp-content/plugins/super-easy-social-share/se-social-share.php+253
    Undefined index: float
    • > GET request to /wp-admin/options-general.php?page=social-share
    • > Notice in wp-content/plugins/super-easy-social-share/se-social-share.php+243
    Undefined index: hide_mobile

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/super-easy-social-share/se-social-share.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: social share icons, share buttons, social media

super-easy-social-share/se-social-share.php 92% from 13 tests

Analyzing the main PHP file in "Super Easy Social Share" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("super-easy-social-share.php" instead of "se-social-share.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin504 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP18829326
Sass1331142
SVG50035
CSS1011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected