84% advanced-htaccess-optimizer-editor

Code Review | Advanced Htaccess Optimizer & Editor

WordPress plugin Advanced Htaccess Optimizer & Editor scored84%from 54 tests.

About plugin

  • Plugin page: advanced-htaccess...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 2, 2023
  • Latest release: Apr 15, 2023
  • Number of updates: 12
  • Update frequency: every 3.7 days
  • Top authors: aleemiqbal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /864 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.47ms] Passed 4 tests

An overview of server-side resources used by Advanced Htaccess Optimizer & Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0736.77 ▲1.09
Dashboard /wp-admin3.38 ▲0.0853.29 ▲4.29
Posts /wp-admin/edit.php3.43 ▲0.0751.67 ▲0.49
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.46 ▼25.18
Media Library /wp-admin/upload.php3.31 ▲0.0737.14 ▲1.71

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Advanced Htaccess Optimizer & Editor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.47 ▼0.311.66 ▲0.0137.86 ▼2.95
Dashboard /wp-admin2,223 ▲385.83 ▲0.02103.72 ▲1.1238.71 ▼0.22
Posts /wp-admin/edit.php2,109 ▲202.06 ▲0.0539.26 ▼2.1536.22 ▼0.11
Add New Post /wp-admin/post-new.php1,531 ▲1723.06 ▲5.52664.33 ▼9.0765.43 ▲9.95
Media Library /wp-admin/upload.php1,408 ▲204.21 ▲0.0394.41 ▼15.6440.75 ▼6.14

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-htaccess-optimizer-editor/advancedhtaccess-optimizer.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-htaccess-optimizer-editor/includes/htaccessincludes.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

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

advanced-htaccess-optimizer-editor/advancedhtaccess-optimizer.php 85% from 13 tests

This is the main PHP file of "Advanced Htaccess Optimizer & Editor" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-htaccess-optimizer-editor.php" instead of "advancedhtaccess-optimizer.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 298 characters long)

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
No dangerous file extensions were detected738 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
There are no PNG files in this plugin