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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.62 ▲4.65 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.23 ▲0.29 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.30 ▼6.02 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.71 ▼10.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.98 ▼1.77 |
Backup /wp-admin/admin.php?page=wp-htaccess-edit_backup | 3.25 | 30.26 |
Edit /wp-admin/admin.php?page=wp-htaccess-edit | 3.27 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.33 ▼0.97 | 1.63 ▲0.04 | 45.41 ▲3.54 |
Dashboard /wp-admin | 2,235 ▲47 | 4.84 ▼0.05 | 113.94 ▼0.73 | 44.47 ▼2.05 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.00 ▼0.03 | 33.66 ▼5.38 | 36.66 ▲3.62 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 17.52 ▼5.53 | 667.92 ▼18.94 | 46.99 ▼5.41 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.22 ▼0.00 | 98.07 ▲2.25 | 46.04 ▲5.51 |
Backup /wp-admin/admin.php?page=wp-htaccess-edit_backup | 802 | 2.06 | 24.19 | 23.39 |
Edit /wp-admin/admin.php?page=wp-htaccess-edit | 838 | 2.05 | 22.87 | 27.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 334 | 40 | 430 |
CSS | 1 | 0 | 0 | 7 |
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 code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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