90% sidebar-content-clone

Code Review | Sidebar Content Clone

WordPress plugin Sidebar Content Clone scored90%from 54 tests.

About plugin

  • Plugin page: sidebar-content-c...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 1, 2017
  • Latest release: Aug 23, 2023
  • Number of updates: 36
  • Update frequency: every 66.4 days
  • Top authors: gaurangsondagar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /6,383 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.37ms] Passed 4 tests

This is a short check of server-side resources used by Sidebar Content Clone
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.45 ▲0.55
Dashboard /wp-admin3.32 ▼0.0349.33 ▼16.50
Posts /wp-admin/edit.php3.37 ▲0.0149.02 ▲2.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.69 ▼7.22
Media Library /wp-admin/upload.php3.24 ▲0.0139.61 ▲1.71

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Sidebar Content Clone
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.18 ▼1.121.60 ▼0.4444.01 ▲0.95
Dashboard /wp-admin2,206 ▲154.83 ▼0.03104.22 ▼9.8440.14 ▼0.10
Posts /wp-admin/edit.php2,092 ▲62.04 ▼0.0236.16 ▼1.5531.60 ▼2.95
Add New Post /wp-admin/post-new.php1,514 ▼1417.51 ▼0.71695.45 ▲81.1755.12 ▲3.12
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.12111.35 ▲5.3150.45 ▲2.66

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

sidebar-content-clone/sidebar-content-clone.php Passed 13 tests

The main file in "Sidebar Content Clone" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
Clone one Sidebar widgets to another sidebar by one click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin101 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21731101

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin