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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.01ms] Passed 4 tests
This is a short check of server-side resources used by Htaccess File Editor - Easily Edit, Backup, Restore .htaccess file
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.62 ▼3.05 |
Dashboard /wp-admin | 3.53 ▲0.22 | 99.61 ▲48.37 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.22 ▼3.41 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 84.85 ▼4.07 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.03 ▼1.49 |
Htaccess /wp-admin/admin.php?page=htaccess-file-editor | 3.38 | 33.29 |
Backup /wp-admin/admin.php?page=htaccess-file-editor-backup | 3.34 | 33.83 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Htaccess File Editor - Easily Edit, Backup, Restore .htaccess file: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲214 | 13.18 ▼1.43 | 1.95 ▲0.15 | 43.31 ▼1.30 |
Dashboard /wp-admin | 2,333 ▲142 | 5.83 ▲0.94 | 99.66 ▼5.52 | 89.62 ▲47.16 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.01 ▼0.03 | 34.78 ▼5.57 | 36.90 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,582 ▲47 | 23.13 ▼0.16 | 730.16 ▲55.18 | 67.37 ▲13.06 |
Media Library /wp-admin/upload.php | 1,451 ▲69 | 4.23 ▲0.06 | 99.78 ▲2.49 | 72.67 ▲27.27 |
Htaccess /wp-admin/admin.php?page=htaccess-file-editor | 1,342 | 3.72 | 73.30 | 39.46 |
Backup /wp-admin/admin.php?page=htaccess-file-editor-backup | 889 | 3.68 | 55.54 | 27.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/htaccess-file-editor/templates/backup-page.php
- > /wp-content/plugins/htaccess-file-editor/templates/dashboard.php
- > /wp-content/plugins/htaccess-file-editor/includes/functions.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/htaccess-file-editor/templates/notices/backup-success.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/htaccess-file-editor/templates/notices/restore-failed.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/htaccess-file-editor/templates/notices/backup-failed.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/htaccess-file-editor/templates/backup-form.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/htaccess-file-editor/includes/class-htaccess-file-editor-actions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/htaccess-file-editor/includes/class-htaccess-file-editor-hooks.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/htaccess-file-editor/includes/admin/dashboard/class-mantrabrain-admin-dashboard.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/htaccess-file-editor/templates/notices/delete-failed.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/htaccess-file-editor/templates/notices/delete-success.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/htaccess-file-editor/templates/backup-form.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=htaccess-file-editor-backup
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'value')" "TypeError: Cannot read properties of undefined (reading 'value')\n at Function.fg [as fromTextArea] (/wp-includes/js/codemirror/codemirror.min.js?ver=5.29.1-alpha-ee20357:22:31506)\n at d.codeEditor.initialize (/wp-admin/js/code-editor.min.js?ver=6.3.1:2:1977)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/htaccess-file-editor/assets/js/htaccess-file-editor.js?ver=1.0.16:3:19)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=htaccess-file-editor-backup
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,hoverIntent,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'value')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: htaccess backup, htaccess editor, htaccess restore, htaccess
htaccess-file-editor/htaccess-file-editor.php 92% from 13 tests
The main file in "Htaccess File Editor - Easily Edit, Backup, Restore .htaccess file" v. 1.0.16 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "3.0.0")
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
There were no executable files found in this plugin915 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 242 | 259 | 909 |
JavaScript | 2 | 2 | 0 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 24 | 70.59% |
▷ Protected methods | 6 | 17.65% |
▷ Private methods | 4 | 11.76% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 9 | 64.29% |
▷ Class constants | 5 | 35.71% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.86KB | 0.81KB | ▼ 5.45% |