89% social-repeater-widget

Code Review | Social Repeater Widget

WordPress plugin Social Repeater Widget scored89%from 54 tests.

About plugin

  • Plugin page: social-repeater-w...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.5
  • WordPress version: 6.3.1
  • First release: Dec 3, 2020
  • Latest release: Dec 3, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: shabab55 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /332 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Social Repeater Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.83 ▲1.69
Dashboard /wp-admin3.38 ▲0.0449.78 ▼19.22
Posts /wp-admin/edit.php3.50 ▲0.1450.87 ▲3.50
Add New Post /wp-admin/post-new.php5.96 ▲0.0894.49 ▼17.54
Media Library /wp-admin/upload.php3.30 ▲0.0844.59 ▲9.67
SRW Widget Settings /wp-admin/options-general.php?page=srw-social-repeater-widget-settings3.2728.97

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_srw_social_repeater_widget
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Repeater Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16614.08 ▼0.565.56 ▲3.5043.06 ▲1.41
Dashboard /wp-admin2,210 ▲224.84 ▼0.19110.83 ▼2.5242.84 ▲0.05
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0139.99 ▼1.0735.01 ▲0.64
Add New Post /wp-admin/post-new.php1,537 ▲1823.31 ▼0.09694.40 ▲14.6963.54 ▲6.63
Media Library /wp-admin/upload.php1,395 ▲44.25 ▲0.0199.27 ▼3.5945.35 ▼0.06
SRW Widget Settings /wp-admin/options-general.php?page=srw-social-repeater-widget-settings8592.0523.5026.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_srw_social_repeater_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #7 (Display Inserted social platform on frontend.) image missing
Please take inspiration from this readme.txt

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

The entry point to "Social Repeater Widget" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected556 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34675294
CSS187217
JavaScript26745

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity9.33
▷ Minimum class complexity2.00
▷ Maximum class complexity21.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin