84% sx-social-icons

Code Review | SX Social Icons

WordPress plugin SX Social Icons scored84%from 54 tests.

About plugin

  • Plugin page: sx-social-icons
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Jun 15, 2016
  • Latest release: Jun 15, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: sabrex82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /743 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.11ms] Passed 4 tests

This is a short check of server-side resources used by SX Social Icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.85 ▲1.33
Dashboard /wp-admin3.42 ▲0.1246.65 ▼5.66
Posts /wp-admin/edit.php3.54 ▲0.1846.28 ▼0.94
Add New Post /wp-admin/post-new.php6.02 ▲0.1495.26 ▼5.36
Media Library /wp-admin/upload.php3.34 ▲0.1235.71 ▼0.49

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_redweb_sx_social_icons
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for SX Social Icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▼0.311.62 ▲0.0743.72 ▲4.95
Dashboard /wp-admin2,197 ▲175.65 ▲0.0496.51 ▼3.0749.63 ▲6.26
Posts /wp-admin/edit.php2,105 ▲51.99 ▲0.0033.47 ▼1.8332.59 ▼1.91
Add New Post /wp-admin/post-new.php1,553 ▲2718.54 ▼4.61615.44 ▼48.8364.63 ▼2.78
Media Library /wp-admin/upload.php1,399 ▲54.25 ▲0.0895.43 ▼0.9240.06 ▼1.34

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_redweb_sx_social_icons
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sx-social-icons/includes/abstract/abstract-sx-social-icons-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

sx-social-icons/sx-social-icons.php 92% from 13 tests

The main file in "SX Social Icons" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 192 characters long)

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 detected1,651 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
Sass326901,010
PHP3100219422
SVG110122
JavaScript2161295
CSS2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity19.67
▷ Minimum class complexity7.00
▷ Maximum class complexity27.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods1982.61%
▷ Protected methods28.70%
▷ Private methods28.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin