84% custom-html-bodyhead

Code Review | WordPress HTML

WordPress plugin WordPress HTML scored 84% from 54 tests.

About plugin

  • Plugin page: custom-html-bodyhead
  • Plugin version: 0.51
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.4
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Nov 6, 2019
  • Number of updates: 14
  • Update frequency: every 123.1 days
  • Top authors: stanton119 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 26,567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by WordPress HTML
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.08 ▼7.97
Dashboard /wp-admin3.31 ▲0.0147.94 ▼0.00
Posts /wp-admin/edit.php3.36 ▲0.0148.30 ▲3.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.44 ▼4.52
Media Library /wp-admin/upload.php3.23 ▲0.0134.55 ▲1.01

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

WordPress HTML: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.30 ▼1.131.71 ▼0.4942.41 ▼4.19
Dashboard /wp-admin2,206 ▲185.90 ▲0.85107.06 ▼0.0642.50 ▼2.99
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0742.10 ▲2.4835.12 ▼3.49
Add New Post /wp-admin/post-new.php1,533 ▼022.96 ▼0.31614.01 ▼76.0447.00 ▼14.63
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.0098.59 ▼3.9643.99 ▼1.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-html-bodyhead/wordpress-html.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: body, highcharts, prototype, html, head...

custom-html-bodyhead/wordpress-html.php 85% from 13 tests

"WordPress HTML" version 0.51's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 446 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-html-bodyhead.php" instead of "wordpress-html.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141624

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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

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