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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.96ms] Passed 4 tests
Server-side resources used by .htaccess Site Access Control
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 45.97 ▼2.38 |
Dashboard /wp-admin | 3.39 ▲0.09 | 42.39 ▼11.12 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.71 ▼6.10 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 86.93 ▼16.22 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.08 ▲2.86 |
.htaccess Site Access Control /wp-admin/options-general.php?page=wpsos-site-access-control | 3.28 | 32.88 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
wpsos_hp_options |
Browser metrics Passed 4 tests
A check of browser resources used by .htaccess Site Access Control
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.28 ▼0.29 | 1.81 ▼0.02 | 38.79 ▼9.89 |
Dashboard /wp-admin | 2,206 ▲29 | 5.56 ▼0.11 | 87.24 ▼8.12 | 38.50 ▼3.77 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.03 ▲0.03 | 34.14 ▼5.37 | 34.13 ▼6.87 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.69 ▲0.15 | 682.18 ▼4.14 | 56.94 ▲2.40 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.21 ▲0.06 | 97.87 ▼22.49 | 47.60 ▼1.09 |
.htaccess Site Access Control /wp-admin/options-general.php?page=wpsos-site-access-control | 875 | 2.01 | 23.47 | 28.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/htaccess-site-access-control/settings-page.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/htaccess-site-access-control/settings-page.php:39
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
htaccess-site-access-control/htaccess-site-access-control.php Passed 13 tests
This is the main PHP file of ".htaccess Site Access Control" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
This plugin lets you password protect your login page, admin page, and/or the whole site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin634 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 63 | 185 | 533 |
CSS | 1 | 13 | 0 | 79 |
JavaScript | 1 | 2 | 0 | 22 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 84.00 |
▷ Minimum class complexity | 84.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 5.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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 files were detected