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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 43.99 ▲0.54 |
Dashboard /wp-admin | 3.50 ▲0.19 | 49.36 ▼2.57 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 51.11 ▲2.81 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 96.68 ▲5.91 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.59 ▲1.41 |
WP Htaccess Editor /wp-admin/options-general.php?page=wp-htaccess-editor | 3.41 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.74 ▲0.39 | 1.71 ▼0.40 | 35.13 ▼9.22 |
Dashboard /wp-admin | 2,250 ▲86 | 5.80 ▲0.19 | 102.85 ▼5.60 | 47.81 ▲0.43 |
Posts /wp-admin/edit.php | 2,161 ▲61 | 2.28 ▲0.26 | 49.43 ▲6.18 | 39.62 ▲6.56 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.87 ▲0.36 | 683.25 ▼25.15 | 53.57 ▼1.03 |
Media Library /wp-admin/upload.php | 1,455 ▲58 | 4.38 ▲0.20 | 105.16 ▼6.11 | 47.57 ▼0.75 |
WP Htaccess Editor /wp-admin/options-general.php?page=wp-htaccess-editor | 1,274 | 3.81 | 90.29 | 58.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
- > PHP Fatal error
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:
- Screenshots: Add a description for screenshot #3 in wp-htaccess-editor/assets to your 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 225 | 259 | 1,020 |
CSS | 3 | 59 | 13 | 306 |
JavaScript | 5 | 42 | 40 | 302 |
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 code | 0.24 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 39 | 90.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.30% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/wp-htaccess-editor-logo.png | 6.27KB | 4.00KB | ▼ 36.20% |
wf-flyout/icons/ucp.png | 16.30KB | 2.35KB | ▼ 85.58% |
wf-flyout/icons/wp-ssl.png | 13.01KB | 6.69KB | ▼ 48.56% |
img/loading-icon.png | 5.23KB | 2.21KB | ▼ 57.68% |
wf-flyout/icons/wp-reset.png | 3.11KB | 2.28KB | ▼ 26.85% |