84% wp-htaccess-editor

Code Review | Htaccess File Editor - Safely Edit Htaccess File

WordPress plugin Htaccess File Editor - Safely Edit Htaccess File scored84%from 54 tests.

About plugin

  • Plugin page: wp-htaccess-editor
  • Plugin version: 1.71
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 24, 2011
  • Latest release: Aug 10, 2023
  • Number of updates: 57
  • Update frequency: every 79.4 days
  • Top authors: WebFactory (82.46%)Lukenzi (12.28%)talextech (8.77%)

Code review

54 tests

User reviews

86 reviews

Install metrics

60,000+ active /614,293 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲0.55ms] Passed 4 tests

An overview of server-side resources used by Htaccess File Editor - Safely Edit Htaccess File
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1443.99 ▲0.54
Dashboard /wp-admin3.50 ▲0.1949.36 ▼2.57
Posts /wp-admin/edit.php3.61 ▲0.2551.11 ▲2.81
Add New Post /wp-admin/post-new.php6.10 ▲0.2196.68 ▲5.91
Media Library /wp-admin/upload.php3.42 ▲0.1939.59 ▲1.41
WP Htaccess Editor /wp-admin/options-general.php?page=wp-htaccess-editor3.4135.98

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
wp-htaccess-editor
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Htaccess File Editor - Safely Edit Htaccess File
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8614.74 ▲0.391.71 ▼0.4035.13 ▼9.22
Dashboard /wp-admin2,250 ▲865.80 ▲0.19102.85 ▼5.6047.81 ▲0.43
Posts /wp-admin/edit.php2,161 ▲612.28 ▲0.2649.43 ▲6.1839.62 ▲6.56
Add New Post /wp-admin/post-new.php1,540 ▲1423.87 ▲0.36683.25 ▼25.1553.57 ▼1.03
Media Library /wp-admin/upload.php1,455 ▲584.38 ▲0.20105.16 ▼6.1147.57 ▼0.75
WP Htaccess Editor /wp-admin/options-general.php?page=wp-htaccess-editor1,2743.8190.2958.90

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-htaccess-editor/wp-htaccess-editor.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: You can look at the official readme.txt

wp-htaccess-editor/wp-htaccess-editor.php Passed 13 tests

The main PHP script in "Htaccess File Editor - Safely Edit Htaccess File" version 1.71 is automatically included on every request by WordPress
86 characters long description:
Safe and easy way to edit the .htaccess file directly from WP admin without using FTP.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,628 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP32252591,020
CSS35913306
JavaScript54240302

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity43.00
▷ Minimum class complexity12.00
▷ Maximum class complexity74.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3990.70%
▷ Protected methods00.00%
▷ Private methods49.30%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
7 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/wp-htaccess-editor-logo.png6.27KB4.00KB▼ 36.20%
wf-flyout/icons/ucp.png16.30KB2.35KB▼ 85.58%
wf-flyout/icons/wp-ssl.png13.01KB6.69KB▼ 48.56%
img/loading-icon.png5.23KB2.21KB▼ 57.68%
wf-flyout/icons/wp-reset.png3.11KB2.28KB▼ 26.85%