79% sbd-aside

Code Review | SBD Aside

WordPress plugin SBD Aside scored 79% from 54 tests.

About plugin

  • Plugin page: sbd-aside
  • Plugin version: 0.03
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.5.0
  • WordPress version: 5.8.1
  • First release: Jan 30, 2013
  • Latest release: Jan 30, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: seanbdurkin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 700 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.82MB] [CPU: ▼189.62ms] Passed 4 tests

Analyzing server-side resources used by SBD Aside
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.81 ▼1.025.18 ▼27.68
Dashboard /wp-admin1.83 ▼1.239.49 ▼35.24
Posts /wp-admin/edit.php1.83 ▼1.285.72 ▼40.21
Add New Post /wp-admin/post-new.php1.83 ▼3.605.38 ▼652.81
Media Library /wp-admin/upload.php1.83 ▼1.185.17 ▼30.23
SBD Aside /wp-admin/options-general.php?page=sbd_options_storeoptions1.835.26

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for SBD Aside
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.86 ▲0.287.88 ▼1.1547.68 ▲0.46
Dashboard /wp-admin2,980 ▲466.13 ▲0.23147.38 ▼8.16101.93 ▼17.17
Posts /wp-admin/edit.php2,743 ▲42.69 ▼0.0165.44 ▼1.7391.30 ▼3.75
Add New Post /wp-admin/post-new.php1,688 ▼18418.79 ▼0.40353.16 ▼23.94109.11 ▼3.04
Media Library /wp-admin/upload.php1,814 ▲105.01 ▼0.00144.68 ▼6.45114.83 ▼2.80
SBD Aside /wp-admin/options-general.php?page=sbd_options_storeoptions1,1652.2255.4061.43

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
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5663
    wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the sbd_aside_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=sbd_options_storeoptions
    • > User notice in wp-includes/functions.php+5663
    wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the sbd_aside_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=sbd_options_storeoptions
    • > User notice in wp-includes/functions.php+5663
    wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the sbd_aside_stylesheet handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sbd_options_storeoptions
    • > Notice in wp-content/plugins/sbd-aside/sbd-aside.php+122
    Trying to access array offset on value of type bool

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sbd-aside/sbd-aside.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: sidebar, aside

sbd-aside/sbd-aside.php Passed 13 tests

"SBD Aside" version 0.03's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
30 characters long description:
Plugin inserts "aside" content

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
No dangerous file extensions were detected354 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1428218
CSS1190127
JavaScript1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions20
▷ Named functions1890.00%
▷ Anonymous functions210.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin