90% rb-site-social-links

Code Review | RB Site Social Links

WordPress plugin RB Site Social Links scored90%from 54 tests.

About plugin

  • Plugin page: rb-site-social-links
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 22, 2021
  • Latest release: May 6, 2023
  • Number of updates: 27
  • Update frequency: every 22.3 days
  • Top authors: bashirrased2017 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /606 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.35ms] Passed 4 tests

This is a short check of server-side resources used by RB Site Social Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.83 ▼7.34
Dashboard /wp-admin3.34 ▲0.0449.30 ▼7.69
Posts /wp-admin/edit.php3.39 ▲0.0450.84 ▼6.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.16 ▼20.22
Media Library /wp-admin/upload.php3.27 ▲0.0434.17 ▼4.42

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for RB Site Social Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.73 ▲0.501.51 ▼0.1542.75 ▼2.00
Dashboard /wp-admin2,195 ▲155.51 ▼0.1285.69 ▼15.7538.28 ▼4.65
Posts /wp-admin/edit.php2,097 ▼31.97 ▲0.0239.30 ▲1.8435.08 ▼2.59
Add New Post /wp-admin/post-new.php1,535 ▲918.46 ▼5.46602.71 ▼58.4273.26 ▲25.55
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0093.29 ▼10.2741.40 ▼2.06

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

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: links, media, site, social

rb-site-social-links/rb-site-social-links.php Passed 13 tests

This is the main PHP file of "RB Site Social Links" 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
63 characters long description:
RB Site Social Links plugin use for your site social links add.

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
Everything looks great! No dangerous files found in this plugin353 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16173353

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions19
▷ Named functions1684.21%
▷ Anonymous functions315.79%
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 are no PNG files in this plugin