84% resizable-editor-sidebar

Code Review | Resizable Editor Sidebar

WordPress plugin Resizable Editor Sidebar scored84%from 54 tests.

About plugin

  • Plugin page: resizable-editor-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 27, 2021
  • Latest release: Dec 16, 2022
  • Number of updates: 9
  • Update frequency: every 52.9 days
  • Top authors: toastwebsites (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /7,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Resizable Editor Sidebar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.96 ▼1.56
Dashboard /wp-admin3.31 ▲0.0052.09 ▲2.25
Posts /wp-admin/edit.php3.36 ▲0.0051.31 ▼2.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.15 ▼0.48
Media Library /wp-admin/upload.php3.23 ▲0.0036.61 ▼1.65

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Resizable Editor Sidebar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.29 ▼1.461.73 ▼0.2746.91 ▼4.48
Dashboard /wp-admin2,212 ▲215.84 ▲0.97112.89 ▼0.4040.97 ▼4.30
Posts /wp-admin/edit.php2,097 ▲52.20 ▲0.1641.34 ▲0.9035.58 ▲1.44
Add New Post /wp-admin/post-new.php1,524 ▲523.40 ▲0.28658.94 ▼19.1944.17 ▼12.08
Media Library /wp-admin/upload.php1,391 ▲64.29 ▲0.09113.45 ▲2.5048.64 ▲1.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× 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/resizable-editor-sidebar/resizable-editor-sidebar.php:14

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: preferences, user interface

resizable-editor-sidebar/resizable-editor-sidebar.php Passed 13 tests

The main file in "Resizable Editor Sidebar" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Enables functionality to make the Gutenberg sidebar width resizable

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
Success! There were no dangerous files found in this plugin141 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS121121
JavaScript11012
PHP1177
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin