94% ace-html-block

Code Review | ACE HTML Block

WordPress plugin ACE HTML Block scored 94% from 54 tests.

About plugin

  • Plugin page: ace-html-block
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1
  • WordPress version: 5.9.2
  • First release: Feb 6, 2019
  • Latest release: Feb 7, 2019
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: willdelphia (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,347 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by ACE HTML Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0157.85 ▲5.06
Dashboard /wp-admin3.41 ▲0.0137.84 ▼4.34
Posts /wp-admin/edit.php3.65 ▲0.0145.58 ▲6.38
Add New Post /wp-admin/post-new.php6.88 ▼0.0996.54 ▼1,218.49
Media Library /wp-admin/upload.php3.30 ▲0.0130.41 ▲4.24

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACE HTML Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,780 ▲5815.88 ▼0.107.56 ▲1.262.60 ▲0.12
Dashboard /wp-admin2,881 ▲206.17 ▼0.02117.95 ▼18.34153.48 ▼2.86
Posts /wp-admin/edit.php2,691 ▼33.24 ▼0.0067.91 ▲0.65145.52 ▼4.05
Add New Post /wp-admin/post-new.php1,791 ▲8023.26 ▲2.48451.41 ▲5.56160.87 ▼1.68
Media Library /wp-admin/upload.php1,701 ▲35.51 ▲0.01146.21 ▲3.42189.11 ▲2.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ace-html-block/aceblock.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: syntax highlighting, raw html, block, ace editor, html block

ace-html-block/aceblock.php 92% from 13 tests

The main PHP file in "ACE HTML Block" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ace-html-block.php" instead of "aceblock.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected25,123 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33,5202,37925,088
JSON10021
PHP14714

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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 functions1100.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
PNG images were not found in this plugin