84% bc-html-segments

Code Review | BC HTML Segments

WordPress plugin BC HTML Segments scored84%from 54 tests.

About plugin

  • Plugin page: bc-html-segments
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 13, 2016
  • Latest release: Sep 14, 2016
  • Number of updates: 5
  • Update frequency: every 280.8 days
  • Top authors: mberding (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.24MB] [CPU: ▼15.73ms] Passed 4 tests

A check of server-side resources used by BC HTML Segments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.77 ▼0.6915.13 ▼25.55
Dashboard /wp-admin3.31 ▲0.0146.03 ▼5.53
Posts /wp-admin/edit.php3.07 ▼0.2828.95 ▼20.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.91 ▼11.66
Media Library /wp-admin/upload.php3.23 ▲0.0031.79 ▼2.82

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for BC HTML Segments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.151.77 ▼0.0944.68 ▼2.99
Dashboard /wp-admin2,206 ▲185.92 ▲1.04105.64 ▼4.3739.30 ▼5.40
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0233.26 ▼3.3532.49 ▼0.93
Add New Post /wp-admin/post-new.php1,523 ▲923.05 ▲5.46659.05 ▼21.7357.52 ▲0.73
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0595.75 ▼1.9040.99 ▼5.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bc-html-segments/bc-html-segments.php

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 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === bc-html-segments === )
  • Tags: Please add at least on tag
The official readme.txt might help

bc-html-segments/bc-html-segments.php Passed 13 tests

The main file in "BC HTML Segments" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Output just the header or footer for use with other sub-systems

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
There were no executable files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141211

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin