94% wpsimpletools-html-code

Code Review | HTML Code Snippet

WordPress plugin HTML Code Snippet scored 94% from 54 tests.

About plugin

  • Plugin page: wpsimpletools-htm...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 18, 2018
  • Latest release: Apr 14, 2021
  • Number of updates: 22
  • Update frequency: every 47.1 days
  • Top authors: wordpresssimpletools (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 927 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼141.28ms] Passed 4 tests

Server-side resources used by HTML Code Snippet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.01 ▲11.57
Dashboard /wp-admin3.07 ▲0.0142.55 ▲0.48
Posts /wp-admin/edit.php3.12 ▲0.0141.41 ▼0.61
Add New Post /wp-admin/post-new.php5.43 ▼0.0089.25 ▼557.30
Media Library /wp-admin/upload.php3.01 ▼0.0032.65 ▼7.69

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

HTML Code Snippet: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲11315.92 ▲0.3012.16 ▲2.5148.22 ▲2.78
Dashboard /wp-admin2,967 ▲335.82 ▼0.16136.25 ▼8.98109.05 ▲6.32
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0163.76 ▼0.4291.02 ▼0.43
Add New Post /wp-admin/post-new.php1,672 ▲17218.87 ▲0.30373.08 ▲8.53107.29 ▼8.68
Media Library /wp-admin/upload.php1,751 ▼565.03 ▲0.02141.77 ▼10.03124.60 ▲0.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wpsimpletools-html-code/wpsimpletools-html-code.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: html, javascript, script, analytics, html code...

wpsimpletools-html-code/wpsimpletools-html-code.php Passed 13 tests

The main PHP file in "HTML Code Snippet" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
108 characters long description:
Adds a field in 'Appearance' menu to manage pure HTML code in page footer (for script tags, analytics, css).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181027

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected