10% separator-widget

Code Review | Separator Widget

WordPress plugin Separator Widget scored10%from 54 tests.

About plugin

  • Plugin page: separator-widget
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Nov 12, 2013
  • Latest release: Dec 8, 2016
  • Number of updates: 11
  • Update frequency: every 102.1 days
  • Top authors: Daniel Ostman (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /7,531 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/separator-widget/separator-widget.php+31
    Function create_function() is deprecated

Server metrics [RAM: ▼1.93MB] [CPU: ▼57.76ms] Passed 4 tests

This is a short check of server-side resources used by Separator Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.415.26 ▼39.92
Dashboard /wp-admin2.08 ▼1.236.28 ▼49.31
Posts /wp-admin/edit.php2.08 ▼1.285.80 ▼47.68
Add New Post /wp-admin/post-new.php2.08 ▼3.815.89 ▼94.13
Media Library /wp-admin/upload.php2.08 ▼1.157.31 ▼32.10

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Separator Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.121.71 ▼0.2341.28 ▼3.11
Dashboard /wp-admin2,195 ▲185.54 ▼0.0790.65 ▼14.1138.65 ▼2.61
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0241.67 ▲1.6236.77 ▲3.73
Add New Post /wp-admin/post-new.php1,526 ▼223.10 ▲0.14683.93 ▼17.6757.49 ▲1.41
Media Library /wp-admin/upload.php1,403 ▲64.16 ▼0.0796.10 ▼17.8247.92 ▼0.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/separator-widget/separator-widget.php+31
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_halvfem_separator_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/separator-widget/separator-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
9 plugin tags: widgets, widget, wordpress, sidebar, divider...

separator-widget/separator-widget.php Passed 13 tests

Analyzing the main PHP file in "Separator Widget" version 1.0.2
18 characters long description:
A separator widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1154654
PO File2121848

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
PNG images were not found in this plugin