90% candy-social-widget

Code Review | Candy Social Widget

WordPress plugin Candy Social Widget scored90%from 54 tests.

About plugin

  • Plugin page: candy-social-widget
  • Plugin version: 3.0
  • PHP compatiblity: 5.6.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jul 25, 2012
  • Latest release: Nov 2, 2023
  • Number of updates: 36
  • Update frequency: every 114.4 days
  • Top authors: WPExplorer (58.33%)AJClarke (44.44%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /17,810 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.92ms] Passed 4 tests

An overview of server-side resources used by Candy Social Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0840.82 ▼9.97
Dashboard /wp-admin3.39 ▲0.0447.82 ▼14.50
Posts /wp-admin/edit.php3.44 ▲0.0845.59 ▼0.17
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.99 ▲1.62
Media Library /wp-admin/upload.php3.31 ▲0.0836.66 ▲0.98

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_candy_social_widget
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Candy Social Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.31 ▼0.411.67 ▼0.3641.05 ▼2.88
Dashboard /wp-admin2,195 ▲145.58 ▼0.0892.92 ▼20.5437.33 ▼4.80
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0260.61 ▲25.1736.92 ▲0.50
Add New Post /wp-admin/post-new.php1,526 ▼222.89 ▼0.10611.75 ▼86.7446.39 ▼8.05
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0794.69 ▼3.0641.15 ▼4.28

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_candy_social_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: icons, social profiles, social media, social widget, buttons...

candy-social-widget/candy-social-widget.php 92% from 13 tests

This is the main PHP file of "Candy Social Widget" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

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
Everything looks great! No dangerous files found in this plugin567 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP16665340
CSS3153164
JavaScript18437
SVG260026

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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