84% rj-socal-media-in-widget

Code Review | Rj social medial in widget

WordPress plugin Rj social medial in widget scored84%from 54 tests.

About plugin

  • Plugin page: rj-socal-media-in...
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.5.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2017
  • Latest release: Nov 8, 2020
  • Number of updates: 18
  • Update frequency: every 73.6 days
  • Top authors: shehabulislam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /596 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Rj social medial in widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.15 ▼12.46
Dashboard /wp-admin3.38 ▲0.0744.83 ▼2.58
Posts /wp-admin/edit.php3.49 ▲0.1349.86 ▲0.45
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.14 ▼12.97
Media Library /wp-admin/upload.php3.30 ▲0.0734.96 ▲0.01

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_zboom_social_share_button
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rj social medial in widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15514.08 ▼0.337.01 ▲4.3644.36 ▼6.54
Dashboard /wp-admin2,219 ▲285.85 ▲0.9697.71 ▼14.3440.44 ▲0.34
Posts /wp-admin/edit.php2,105 ▲162.12 ▲0.1142.80 ▲2.6934.79 ▼0.57
Add New Post /wp-admin/post-new.php1,543 ▲2923.16 ▲5.57614.67 ▼59.3361.36 ▼3.37
Media Library /wp-admin/upload.php1,404 ▲194.29 ▼0.0099.61 ▼2.7143.12 ▼0.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_zboom_social_share_button
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
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: Class 'WP_Widget' not found in wp-content/plugins/rj-socal-media-in-widget/index.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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: You can look at the official readme.txt

rj-socal-media-in-widget/index.php 92% from 13 tests

The principal PHP file in "Rj social medial in widget" v. 1.5.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rj-socal-media-in-widget.php" instead of "index.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 detected1,205 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG100655
CSS4110165320
PHP18157210
JavaScript324220

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.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
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/square.png1.52KB0.84KB▼ 44.84%
screenshot.png27.01KB11.42KB▼ 57.73%
img/facebook.png11.59KB4.92KB▼ 57.52%
img/round.png4.85KB2.48KB▼ 48.88%
img/samebg.png4.59KB2.24KB▼ 51.20%