10% dc-simple-share-buttons

Code Review | DC Simple Share Buttons

WordPress plugin DC Simple Share Buttons scored10%from 54 tests.

About plugin

  • Plugin page: dc-simple-share-b...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2014
  • Latest release: Apr 9, 2014
  • Number of updates: 25
  • Update frequency: every 0.0 days
  • Top authors: doncaprio (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /8,818 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/dc-simple-share-buttons/doncaprio-social-plugin.php+25
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.45ms] Passed 4 tests

Analyzing server-side resources used by DC Simple Share Buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.45 ▼5.12
Dashboard /wp-admin3.32 ▲0.0146.50 ▼2.03
Posts /wp-admin/edit.php3.37 ▲0.0142.97 ▼0.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.33 ▼14.08
Media Library /wp-admin/upload.php3.24 ▲0.0139.05 ▲7.45
Don Caprio's Social Share /wp-admin/options-general.php?page=doncaprio-social-plugin-dc3.1829.94

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
doncaprio_social_plugin
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

DC Simple Share Buttons: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7813.14 ▼1.162.03 ▼0.0242.76 ▼3.10
Dashboard /wp-admin2,210 ▲225.81 ▲0.92100.02 ▼16.9838.48 ▼9.63
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0134.54 ▼5.5428.93 ▼6.84
Add New Post /wp-admin/post-new.php1,541 ▲2123.24 ▲0.08669.13 ▼24.5755.13 ▲3.79
Media Library /wp-admin/upload.php1,389 ▼24.17 ▼0.04106.39 ▲3.3145.46 ▼1.74
Don Caprio's Social Share /wp-admin/options-general.php?page=doncaprio-social-plugin-dc9332.0322.8926.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=doncaprio-social-plugin-dc
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=doncaprio-social-plugin-dc
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/dc-simple-share-buttons/doncaprio-social-plugin.php:12

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: share, social, google, facebook, twitter

dc-simple-share-buttons/doncaprio-social-plugin.php 92% from 13 tests

The main PHP file in "DC Simple Share Buttons" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dc-simple-share-buttons.php" instead of "doncaprio-social-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected222 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25133207
CSS110115

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions9
▷ Named functions9100.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
No PNG files were detected