10% recordbrowser

Code Review | Recordbrowser

WordPress plugin Recordbrowser scored10%from 54 tests.

About plugin

  • Plugin page: recordbrowser
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.3-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 10, 2017
  • Latest release: May 7, 2017
  • Number of updates: 22
  • Update frequency: every 1.2 days
  • Top authors: cpulchra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,135 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/recordbrowser/functions/sidebarwidget.php+7
    Undefined index: rbreload

Server metrics [RAM: ▲0.34MB] [CPU: ▼2.82ms] Passed 4 tests

Server-side resources used by Recordbrowser
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5244.84 ▼0.68
Dashboard /wp-admin3.63 ▲0.3353.63 ▲0.11
Posts /wp-admin/edit.php3.75 ▲0.3953.53 ▼0.41
Add New Post /wp-admin/post-new.php6.22 ▲0.3390.20 ▼10.28
Media Library /wp-admin/upload.php3.56 ▲0.3339.89 ▲3.42
Delete Records /wp-admin/admin.php?page=recordbrowserdelete3.5337.69
Edit Records /wp-admin/admin.php?page=recordbrowseredit3.5337.19
Add New Record /wp-admin/admin.php?page=recordbrowseradd3.5236.13
Settings /wp-admin/admin.php?page=recordbrowsersettings3.5235.00
Help /wp-admin/admin.php?page=recordbrowserhelp3.5235.32

Server storage [IO: ▲0.98MB] [DB: ▲0.02MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: 2 new tables, 8 new options
New tables
wp_recordbrowser_records
wp_recordbrowser_tracks
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
widget_recordbrowser_slider_widget
recordbrowser_options
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Recordbrowser
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21113.88 ▼0.378.95 ▲7.1839.86 ▼4.43
Dashboard /wp-admin2,238 ▲645.58 ▲0.0485.09 ▼11.6336.85 ▼17.66
Posts /wp-admin/edit.php2,149 ▲492.01 ▲0.0536.56 ▼1.3937.95 ▲1.69
Add New Post /wp-admin/post-new.php1,562 ▲3623.19 ▲0.04701.17 ▲14.2957.87 ▼11.33
Media Library /wp-admin/upload.php1,444 ▲414.26 ▲0.1297.49 ▼1.8444.31 ▼0.62
Delete Records /wp-admin/admin.php?page=recordbrowserdelete8162.0424.1927.27
Edit Records /wp-admin/admin.php?page=recordbrowseredit8122.0424.4326.48
Add New Record /wp-admin/admin.php?page=recordbrowseradd9951.6923.1533.60
Settings /wp-admin/admin.php?page=recordbrowsersettings9161.7024.4026.84
Help /wp-admin/admin.php?page=recordbrowserhelp9772.0424.1629.21

Uninstaller [IO: ▲0.51MB] [DB: ▲0.02MB] 25% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/recordbrowser/functions/sidebarwidget.php+7
    Undefined index: rbreload
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_recordbrowser_records
    • wp_recordbrowser_tracks
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • widget_recordbrowser_slider_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • recordbrowser_options
    • db_upgraded

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/recordbrowser/classes/Recordbrowser_Slider.php
    • > /wp-content/plugins/recordbrowser/functions/install.php
    • > /wp-content/plugins/recordbrowser/functions/delete_record.php
    • > /wp-content/plugins/recordbrowser/recordbrowser.php
    • > /wp-content/plugins/recordbrowser/functions/display_single.php
    • > /wp-content/plugins/recordbrowser/functions/settings.php
    • > /wp-content/plugins/recordbrowser/functions/display_all.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: music collecting, music, discography

recordbrowser/recordbrowser.php 92% from 13 tests

The primary PHP file in "Recordbrowser" version 1.1.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7.4" instead of "3.7.3")

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
Everything looks great! No dangerous files found in this plugin12,498 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
CSS52409,394
PHP113961222,218
LESS579116434
SVG100288
HTML11077
JSON20050
JavaScript112221
Markdown16016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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%
Functions35
▷ Named functions35100.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