84% hr-widget

Code Review | Horizontal Rule Widget

WordPress plugin Horizontal Rule Widget scored84%from 54 tests.

About plugin

  • Plugin page: hr-widget
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.4
  • WordPress version: 6.3.1
  • First release: Sep 22, 2012
  • Latest release: Sep 22, 2012
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: miyauchi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,284 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.97ms] Passed 4 tests

This is a short check of server-side resources used by Horizontal Rule Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.72 ▼7.51
Dashboard /wp-admin3.32 ▲0.0149.62 ▼0.59
Posts /wp-admin/edit.php3.37 ▲0.0144.76 ▼2.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.69 ▼1.32
Media Library /wp-admin/upload.php3.24 ▲0.0135.60 ▲2.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_hrwidget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Horizontal Rule Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.271.73 ▼0.0444.62 ▼0.51
Dashboard /wp-admin2,203 ▲155.86 ▼0.1895.58 ▼21.4338.67 ▼5.35
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0335.51 ▲0.2835.41 ▲1.34
Add New Post /wp-admin/post-new.php1,542 ▲518.25 ▼4.88614.90 ▼49.3451.10 ▼0.99
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.0394.87 ▼16.2643.00 ▼1.61

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_hrwidget
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hr-widget/hr-widget.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)
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
2 plugin tags: hr, widget

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

Analyzing the main PHP file in "Horizontal Rule Widget" version 1.0.0
58 characters long description:
This plugin allow you to insert horizontal rule on 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 detected67 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141144
PO File161123

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin