84% ace-html-block

Code Review | ACE HTML Block

WordPress plugin ACE HTML Block scored84%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: 6.3.1
  • 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

90+ active /1,744 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by ACE HTML Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.53 ▼7.39
Dashboard /wp-admin3.31 ▲0.0144.33 ▼3.83
Posts /wp-admin/edit.php3.36 ▲0.0145.11 ▼0.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.64 ▼4.02
Media Library /wp-admin/upload.php3.23 ▲0.0140.71 ▲4.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for ACE HTML Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.60 ▼0.771.63 ▼0.1841.73 ▼1.13
Dashboard /wp-admin2,206 ▲185.90 ▲0.01106.23 ▲5.3638.92 ▼0.14
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0539.14 ▲2.6935.51 ▼1.26
Add New Post /wp-admin/post-new.php6,452 ▲4,91930.91 ▲7.70841.96 ▲212.7553.19 ▲2.61
Media Library /wp-admin/upload.php1,382 ▼64.19 ▲0.0797.82 ▼6.3841.28 ▲0.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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
No browser issues were found

Optimizations

Plugin configuration 96% 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
5 plugin tags: ace editor, html block, block, raw html, syntax highlighting

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

The main file in "ACE HTML Block" v. 1.0.1 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:
  • Main file name: Name the main plugin file 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 review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected25,123 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33,5202,37925,088
JSON10021
PHP14714

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin