90% ocean-custom-sidebar

Code Review | Ocean Custom Sidebar

WordPress plugin Ocean Custom Sidebar scored90%from 54 tests.

About plugin

  • Plugin page: ocean-custom-sidebar
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2016
  • Latest release: Sep 6, 2023
  • Number of updates: 36
  • Update frequency: every 69.4 days
  • Top authors: oceanwp (66.67%)apprimit (36.11%)

Code review

54 tests

User reviews

7 reviews

Install metrics

30,000+ active /631,142 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Ocean Custom Sidebar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.44 ▲0.01
Dashboard /wp-admin3.34 ▼0.0051.49 ▼14.12
Posts /wp-admin/edit.php3.46 ▲0.1053.10 ▲2.97
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.34 ▼16.92
Media Library /wp-admin/upload.php3.27 ▲0.0433.14 ▼1.48

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
ocean-custom-sidebar-version
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ocean Custom Sidebar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.311.65 ▲0.0341.48 ▲1.90
Dashboard /wp-admin2,195 ▲185.54 ▼0.1281.52 ▼3.0240.42 ▼2.48
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0638.63 ▲2.4535.65 ▲1.60
Add New Post /wp-admin/post-new.php1,534 ▲618.46 ▼4.77631.68 ▼92.8862.91 ▲2.84
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.0096.59 ▼4.8543.86 ▼3.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • ocean-custom-sidebar-version
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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
Congratulations! This plugin passed the SRP test

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

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: personalize, oceanwp, sidebar, widgets, custom...

ocean-custom-sidebar/ocean-custom-sidebar.php Passed 13 tests

The main PHP script in "Ocean Custom Sidebar" version 1.1.2 is automatically included on every request by WordPress
78 characters long description:
Generates an unlimited number of sidebars and place them on any page you wish.

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
There were no executable files found in this plugin481 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File2107113265
PHP276166216

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods19
▷ Static methods15.26%
▷ Public methods1789.47%
▷ Protected methods15.26%
▷ Private methods15.26%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin