Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/htauth-sync/htauthsync.php+70
array_merge(): Expected parameter 2 to be an array, bool given
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.07ms] Passed 4 tests
Server-side resources used by HTAuth Sync
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.49 ▼2.25 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.67 ▼1.28 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.84 ▼6.11 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.34 ▼14.65 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.60 ▲3.51 |
HTAuth Sync /wp-admin/options-general.php?page=htauth-sync/htauthsync.php | 3.21 | 27.59 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
htauth-sync-options |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for HTAuth Sync
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.19 ▼1.44 | 1.70 ▼0.10 | 45.23 ▼1.56 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▼0.01 | 108.47 ▼8.94 | 43.40 ▼0.98 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.03 | 39.68 ▲3.50 | 33.88 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.18 ▲0.10 | 678.42 ▲14.31 | 47.29 ▼3.64 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.08 | 100.70 ▼8.62 | 42.72 ▼3.08 |
HTAuth Sync /wp-admin/options-general.php?page=htauth-sync/htauthsync.php | 872 | 2.02 | 24.13 | 27.37 |
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
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/htauth-sync/htauthsync.php:429
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: htaccess, htauth, htusers, htdigest, authentication...
htauth-sync/htauthsync.php 92% from 13 tests
The main PHP script in "HTAuth Sync" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("htauth-sync.php" instead of "htauthsync.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin253 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 73 | 120 | 246 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 11 | 68.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 31.25% |
Functions | 1 | |
▷ Named functions | 1 | 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 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