Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-htaccess-control/wp-htaccess-control.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; WPhtc has a deprecated constructor
Server metrics [RAM: ▼1.60MB] [CPU: ▼186.09ms] Passed 4 tests
This is a short check of server-side resources used by WP htaccess Control
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼0.80 | 6.71 ▼27.98 |
Dashboard /wp-admin | 2.05 ▼1.00 | 5.96 ▼32.61 |
Posts /wp-admin/edit.php | 2.05 ▼1.05 | 6.80 ▼37.87 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.38 | 6.76 ▼639.44 |
Media Library /wp-admin/upload.php | 2.05 ▼0.95 | 6.76 ▼34.44 |
htaccess Control /wp-admin/options-general.php?page=wp-htaccess-control/wp-htaccess-control.php | 2.06 | 6.19 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 1 new option
New WordPress options |
---|
WPhtc_data |
Browser metrics Passed 4 tests
Checking browser requirements for WP htaccess Control
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.82 ▲0.06 | 8.56 ▼1.66 | 47.57 ▼3.17 |
Dashboard /wp-admin | 2,977 ▲46 | 5.85 ▼0.10 | 154.57 ▲10.74 | 112.36 ▼6.02 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.01 | 65.99 ▲4.82 | 92.38 ▲6.70 |
Add New Post /wp-admin/post-new.php | 1,503 ▼179 | 18.67 ▼0.11 | 377.40 ▲14.09 | 109.75 ▲4.26 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.03 ▼0.03 | 146.43 ▲3.54 | 116.54 ▼14.71 |
htaccess Control /wp-admin/options-general.php?page=wp-htaccess-control/wp-htaccess-control.php | 2,776 | 2.68 | 59.43 | 132.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-htaccess-control/wp-htaccess-control.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; WPhtc has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 1 option
- WPhtc_data
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wp-htaccess-control/wp-htaccess-control.php
- > Deprecated in wp-content/plugins/wp-htaccess-control/wp-htaccess-control.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; WPhtc has a deprecated constructor
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 fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-htaccess-control/index.php
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wp-htaccess-control/admin-ui-includes/htaccess-suggestions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wp-htaccess-control/admin-ui-includes/custom-author-permalink.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wp-htaccess-control/admin-ui-includes/custom-search-permalink.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wp-htaccess-control/admin-ui-includes/custom-pagination-permalink.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wp-htaccess-control/admin-ui-includes/custom-htaccess.php:6
- > PHP Notice
Trying to get property 'plugin_url' of non-object in wp-content/plugins/wp-htaccess-control/admin-ui-includes/sidebar.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-htaccess-control/wp-htaccess-control.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-htaccess-control/wp-htaccess-control-ui.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wp-htaccess-control/admin-ui-includes/maintenance-mode.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wp-htaccess-control/admin-ui-includes/remove-bases.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wp-htaccess-control/wp-htaccess-control.php
- > Network (severe)
wp-admin/images/menu-bits.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: Screenshot #1 (Administration page (as of v.2.0)) image missing
wp-htaccess-control/wp-htaccess-control.php Passed 13 tests
The entry point to "WP htaccess Control" version 3.5.1 is a PHP file that has certain tags in its header comment area
123 characters long description:
Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,927 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 139 | 122 | 1,480 |
PO File | 1 | 92 | 109 | 193 |
Sass | 1 | 17 | 0 | 110 |
CSS | 1 | 23 | 0 | 108 |
JavaScript | 1 | 1 | 0 | 36 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 136.00 |
▷ Minimum class complexity | 136.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 6.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 3 | 11.54% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.20MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 204.59KB | 204.19KB | 0.20% |
images/antonioandra.de_favicon.png | 0.68KB | 0.76KB | 0.00% |