Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/htaccess/htaccess.php+159
Trying to access array offset on value of type null
Server metrics [RAM: ▲0.81MB] [CPU: ▲3.92ms] Passed 4 tests
Server-side resources used by Htaccess by BestWebSoft - WordPress Website Access Control Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.84 | 51.04 ▲11.52 |
Dashboard /wp-admin | 4.14 ▲0.84 | 56.08 ▲4.76 |
Posts /wp-admin/edit.php | 4.19 ▲0.84 | 61.30 ▲5.79 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 98.20 ▼1.27 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 46.83 ▲6.38 |
Server storage [IO: ▲4.81MB] [DB: ▲0.31MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 120 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
bstwbsftwppdtplgns_options |
widget_recent-posts |
widget_theysaidso_widget |
htccss_options |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Htaccess by BestWebSoft - WordPress Website Access Control Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.26 ▲0.06 | 2.01 ▲0.40 | 43.40 ▲2.31 |
Dashboard /wp-admin | 2,231 ▲54 | 5.56 ▼0.05 | 90.14 ▲2.17 | 41.94 ▼1.60 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.04 ▲0.03 | 39.42 ▲2.01 | 36.22 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.56 ▼0.07 | 684.50 ▼22.90 | 50.02 ▼10.72 |
Media Library /wp-admin/upload.php | 1,442 ▲45 | 4.22 ▲0.09 | 96.85 ▼18.07 | 44.36 ▼2.43 |
Htaccess /wp-admin/htaccess.php | 26 | 0.42 | 0.17 | 14.52 |
Editor /wp-admin/htaccess-editor.php | 26 | 0.42 | 0.08 | 8.42 |
BWS Panel /wp-admin/htaccess.php?page=htccss-bws-panel | 26 | 0.42 | 0.07 | 5.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/htaccess/bws_menu/product_list.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/htaccess/htaccess.php:1498
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/htaccess/bws_menu/class-bws-settings.php:1452
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/htaccess/includes/class-htccss-settings.php:7
- > 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 fix the following browser errors
- > GET request to /wp-admin/htaccess.php
- > Network (severe)
wp-admin/htaccess.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/htaccess-editor.php
- > Network (severe)
wp-admin/htaccess-editor.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/htaccess.php?page=htccss-bws-panel
- > Network (severe)
wp-admin/htaccess.php?page=htccss-bws-panel - 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (Plugin settings page.), #2 (Plugin network settings page.), #3 (Plugin editor page.)
htaccess/htaccess.php Passed 13 tests
The main PHP file in "Htaccess by BestWebSoft - WordPress Website Access Control Plugin" ver. 1.8.5 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
Protect WordPress website – allow and deny access for certain IP addresses, hostnames, etc.
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
There were no executable files found in this plugin20,138 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 3,722 | 5,650 | 7,991 |
PHP | 9 | 553 | 749 | 5,783 |
CSS | 10 | 189 | 276 | 5,554 |
JavaScript | 7 | 49 | 132 | 660 |
SVG | 4 | 0 | 0 | 150 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 101.33 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 13.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 25.00% |
Functions | 91 | |
▷ Named functions | 91 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
62 PNG files occupy 3.14MB with 1.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-bg_glass_75_dadada_1x400.png | 0.32KB | 0.16KB | ▼ 50.46% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_dadada_1x400.png | 0.31KB | 0.18KB | ▼ 39.81% |
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
bws_menu/icons/themes/rent-a-bike.png | 273.38KB | 112.59KB | ▼ 58.82% |
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_95_fef1ec_1x400.png | 0.38KB | 0.17KB | ▼ 53.39% |