84% html5-code-editor

Code Review | HTML5 Code editor

WordPress plugin HTML5 Code editor scored84%from 54 tests.

About plugin

  • Plugin page: html5-code-editor
  • Plugin version: 1.05
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2019
  • Latest release: Aug 14, 2019
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: biodunhi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /704 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by HTML5 Code editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.41 ▼2.63
Dashboard /wp-admin3.33 ▼0.0251.04 ▼8.28
Posts /wp-admin/edit.php3.38 ▲0.0249.23 ▲0.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.55 ▼8.47
Media Library /wp-admin/upload.php3.25 ▲0.0234.19 ▲1.74

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for HTML5 Code editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.23 ▼1.161.65 ▼0.0942.62 ▼1.42
Dashboard /wp-admin2,228 ▲405.81 ▲0.93113.82 ▲8.0676.88 ▲35.20
Posts /wp-admin/edit.php2,114 ▲252.00 ▲0.0238.38 ▲0.5734.63 ▲2.76
Add New Post /wp-admin/post-new.php1,684 ▲17021.91 ▲4.30674.89 ▲0.8350.99 ▲5.19
Media Library /wp-admin/upload.php1,407 ▲194.14 ▼0.07102.53 ▲4.6973.61 ▲31.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/html5-code-editor/html5-code-editor.php:14

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: The official readme.txt might help

html5-code-editor/html5-code-editor.php 92% from 13 tests

"HTML5 Code editor" version 1.05's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected256 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12216173
CSS10066
JavaScript10017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/html5-logo.png1.29KB0.85KB▼ 34.19%