84% drag-and-drop-custom-sidebar

Code Review | REAL Wordpress Sidebar

WordPress plugin REAL Wordpress Sidebar scored84%from 54 tests.

About plugin

  • Plugin page: drag-and-drop-cus...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.7
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Oct 31, 2013
  • Number of updates: 17
  • Update frequency: every 19.4 days
  • Top authors: martin_ziegert (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,862 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 gracefully, with no errors

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

This is a short check of server-side resources used by REAL Wordpress Sidebar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.61 ▲0.89
Dashboard /wp-admin3.31 ▲0.0053.26 ▼1.34
Posts /wp-admin/edit.php3.36 ▲0.0048.64 ▼6.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.01 ▼20.48
Media Library /wp-admin/upload.php3.23 ▲0.0036.96 ▲3.40

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

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

Browser metrics Passed 4 tests

A check of browser resources used by REAL Wordpress Sidebar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲2114.35 ▼0.361.82 ▼0.2939.52 ▼1.54
Dashboard /wp-admin2,196 ▲195.55 ▼0.0784.07 ▼8.4040.91 ▼5.65
Posts /wp-admin/edit.php2,098 ▼21.96 ▲0.0034.45 ▼1.3535.81 ▼1.07
Add New Post /wp-admin/post-new.php1,527 ▼122.96 ▲0.08664.13 ▼11.8753.30 ▼3.83
Media Library /wp-admin/upload.php1,398 ▼24.12 ▼0.0797.77 ▼12.8744.88 ▲0.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drag-and-drop-custom-sidebar/includes/setup-ui.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drag-and-drop-custom-sidebar/includes/setup-frontend.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drag-and-drop-custom-sidebar/includes/ajax.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/drag-and-drop-custom-sidebar/includes/admin.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === drag-and-drop-custom-sidebar === )
You can look at the official readme.txt

drag-and-drop-custom-sidebar/REAL Wordpress Sidebar.php 92% from 13 tests

The entry point to "REAL Wordpress Sidebar" version 0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("drag-and-drop-custom-sidebar.php" instead of "REAL Wordpress Sidebar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin703 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS3524574
PHP537107
JavaScript20022

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin