84% advance-custom-html

Code Review | Advance Custom HTML - Code editor block for WordPress

WordPress plugin Advance Custom HTML - Code editor block for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: advance-custom-html
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 11, 2022
  • Latest release: Sep 11, 2023
  • Number of updates: 14
  • Update frequency: every 21.7 days
  • Top authors: shehabulislam (57.14%)abuhayat (42.86%)charlescormier (14.29%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /8,398 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.49ms] Passed 4 tests

This is a short check of server-side resources used by Advance Custom HTML - Code editor block for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.90 ▲0.58
Dashboard /wp-admin3.32 ▲0.0249.94 ▲1.70
Posts /wp-admin/edit.php3.37 ▲0.0144.48 ▲0.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.28 ▼20.05
Media Library /wp-admin/upload.php3.24 ▲0.0135.13 ▲0.81

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Advance Custom HTML - Code editor block for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.092.00 ▲0.1444.25 ▲0.85
Dashboard /wp-admin2,206 ▲184.86 ▼0.03111.84 ▲2.7342.01 ▲2.92
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0833.53 ▼3.9432.83 ▼5.86
Add New Post /wp-admin/post-new.php6,352 ▲4,83330.10 ▲6.99947.89 ▲262.8367.14 ▲13.77
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0794.13 ▼6.3742.50 ▲0.64

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant ACHB_VER - assumed 'ACHB_VER' (this will throw an Error in a future version of PHP) in wp-content/plugins/advance-custom-html/dist/editor.asset.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

advance-custom-html/advance-custom-html.php 92% from 13 tests

The main file in "Advance Custom HTML - Code editor block for WordPress" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin113 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File1142446

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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 images were found in this plugin