83% responsive-social-sharing-icons

Code Review | Responsive Social Sharing Icons

WordPress plugin Responsive Social Sharing Icons scored83%from 54 tests.

About plugin

  • Plugin page: responsive-social...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.9
  • WordPress version: 6.3.1
  • First release: May 1, 2014
  • Latest release: May 3, 2014
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: wptreasure (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Responsive Social Sharing Icons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.58 ▼4.72
Dashboard /wp-admin3.31 ▲0.0149.96 ▲2.54
Posts /wp-admin/edit.php3.36 ▲0.0144.48 ▼2.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.53 ▼16.12
Media Library /wp-admin/upload.php3.23 ▲0.0135.84 ▲4.43

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
rssi_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Social Sharing Icons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,059 ▲31313.97 ▼0.4514.76 ▲13.0946.57 ▲8.44
Dashboard /wp-admin2,223 ▲415.80 ▼0.1097.99 ▼6.7060.85 ▲17.29
Posts /wp-admin/edit.php2,103 ▲141.98 ▼0.0635.46 ▼0.0532.73 ▼1.21
Add New Post /wp-admin/post-new.php1,535 ▲222.98 ▼0.11704.10 ▲72.7059.31 ▲4.36
Media Library /wp-admin/upload.php1,405 ▲144.23 ▲0.01103.49 ▲3.4881.56 ▲35.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • rssi_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/responsive-social-sharing-icons/rssi-calling.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/responsive-social-sharing-icons/rssi-calling.php:81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Screenshot #2 (Frontend display.) image not found
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

responsive-social-sharing-icons/rssi.php 85% from 13 tests

This is the main PHP file of "Responsive Social Sharing Icons" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-social-sharing-icons.php" instead of "rssi.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 237 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,088 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS3128449
SVG100414
PHP31319221
JavaScript22114

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/rssi-icon.png0.46KB0.42KB▼ 8.65%