84% sb-children-block

Code Review | SB Children block

WordPress plugin SB Children block scored84%from 54 tests.

About plugin

  • Plugin page: sb-children-block
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2+
  • WordPress version: 6.3.1
  • First release: Aug 6, 2020
  • Latest release: Oct 21, 2023
  • Number of updates: 16
  • Update frequency: every 73.3 days
  • Top authors: bobbingwide (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,738 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
Installer ran successfully

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

Analyzing server-side resources used by SB Children block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.14 ▲1.75
Dashboard /wp-admin3.31 ▲0.0143.30 ▼6.10
Posts /wp-admin/edit.php3.37 ▲0.0145.69 ▼7.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.39 ▼6.38
Media Library /wp-admin/upload.php3.24 ▲0.0133.06 ▼2.07

Server storage [IO: ▲0.53MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SB Children block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.37 ▲0.021.72 ▲0.0138.18 ▼6.49
Dashboard /wp-admin2,192 ▲155.53 ▼0.0482.69 ▼0.6238.21 ▼3.26
Posts /wp-admin/edit.php2,100 ▼02.08 ▲0.0639.94 ▼1.0535.10 ▼4.40
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.64 ▲4.16840.78 ▲142.4264.01 ▲2.47
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0295.35 ▲0.0643.94 ▲3.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • 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 | 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-children-block/sb-children-block.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tested up to: Version format is invalid
You can look at the official readme.txt

sb-children-block/sb-children-block.php Passed 13 tests

The primary PHP file in "SB Children block" version 1.2.3 is used by WordPress to initiate all plugin functionality
46 characters long description:
List children of the current content as links.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin13,662 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON52013,456
PO File2262094
JavaScript5116941
PHP245526
Markdown112025
Sass28019
CSS2101

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin