84% always-edit-in-html

Code Review | Always Edit In HTML

WordPress plugin Always Edit In HTML scored 84% from 54 tests.

About plugin

  • Plugin page: always-edit-in-html
  • Plugin version: 2.4.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Apr 4, 2011
  • Latest release: Mar 30, 2023
  • Number of updates: 41
  • Update frequency: every 106.8 days
  • Top authors: gravitationalfx (43.9%)DeveloperWil (36.59%)limecanvas (24.39%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active / 82,592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Always Edit In HTML
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.44 ▼7.13
Dashboard /wp-admin3.31 ▲0.0145.03 ▼3.54
Posts /wp-admin/edit.php3.36 ▲0.0143.59 ▼4.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.95 ▼7.59
Media Library /wp-admin/upload.php3.24 ▲0.0137.67 ▲0.37

Server storage [IO: ▲0.10MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Always Edit In HTML: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.141.78 ▲0.0544.06 ▼0.63
Dashboard /wp-admin2,203 ▲144.84 ▼0.0696.50 ▼27.6237.51 ▼5.56
Posts /wp-admin/edit.php2,091 ▲22.15 ▲0.1233.85 ▲0.5833.35 ▼8.49
Add New Post /wp-admin/post-new.php6,466 ▲4,94720.27 ▼2.71963.94 ▲314.5070.29 ▲13.57
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.02110.59 ▲8.8544.84 ▲2.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/always-edit-in-html/always-edit-in-html.php:32

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Always edit in HTML options box. Check to turn on.), #2 (Option turned on and page/post is in HTML mode. Visual and Text tabs removed.)
Please take inspiration from this readme.txt

always-edit-in-html/always-edit-in-html.php Passed 13 tests

"Always Edit In HTML" version 2.4.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
107 characters long description:
Opens page and post editor in HTML mode to preserve formatting. Hides Visual editor tab on Classic Editor.

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 detected107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1346484
PO File13323

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
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
images/zeropointdevelopment-mark.png2.05KB1.30KB▼ 36.85%