79% wp-htaccess-edit

Code Review | WP Htaccess Edit

WordPress plugin WP Htaccess Edit scored79%from 54 tests.

About plugin

  • Plugin page: wp-htaccess-edit
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Apr 18, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: asilweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /562 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.03MB] [CPU: ▼4.38ms] Passed 4 tests

Analyzing server-side resources used by WP Htaccess Edit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.62 ▲4.65
Dashboard /wp-admin3.34 ▲0.0347.23 ▲0.29
Posts /wp-admin/edit.php3.39 ▲0.0343.30 ▼6.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.71 ▼10.03
Media Library /wp-admin/upload.php3.26 ▲0.0333.98 ▼1.77
Backup /wp-admin/admin.php?page=wp-htaccess-edit_backup3.2530.26
Edit /wp-admin/admin.php?page=wp-htaccess-edit3.2731.78

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Htaccess Edit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.33 ▼0.971.63 ▲0.0445.41 ▲3.54
Dashboard /wp-admin2,235 ▲474.84 ▼0.05113.94 ▼0.7344.47 ▼2.05
Posts /wp-admin/edit.php2,118 ▲292.00 ▼0.0333.66 ▼5.3836.66 ▲3.62
Add New Post /wp-admin/post-new.php1,538 ▲1917.52 ▼5.53667.92 ▼18.9446.99 ▼5.41
Media Library /wp-admin/upload.php1,417 ▲264.22 ▼0.0098.07 ▲2.2546.04 ▲5.51
Backup /wp-admin/admin.php?page=wp-htaccess-edit_backup8022.0624.1923.39
Edit /wp-admin/admin.php?page=wp-htaccess-edit8382.0522.8727.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-htaccess-edit
    • > Notice in wp-content/plugins/wp-htaccess-edit/pages/dashboard.php+85
    Undefined index: submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-htaccess-edit/pages/backup.php
    • > /wp-content/plugins/wp-htaccess-edit/pages/dashboard.php
    • > /wp-content/plugins/wp-htaccess-edit/inc/functions.php
    • > /wp-content/plugins/wp-htaccess-edit/wp-htaccess-edit.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: editor, file, htaccess, edit

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

"WP Htaccess Edit" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
47 characters long description:
Simple and Safe WordPress htaccess file editor.

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
Everything looks great! No dangerous files found in this plugin437 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP533440430
CSS1007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin