Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼1.20MB] [CPU: ▼44.39ms] Passed 4 tests
Analyzing server-side resources used by Behind Closed Doors
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.70 | 14.65 ▼25.31 |
Dashboard /wp-admin | 2.81 ▼0.49 | 16.63 ▼33.09 |
Posts /wp-admin/edit.php | 2.81 ▼0.54 | 17.34 ▼31.30 |
Add New Post /wp-admin/post-new.php | 2.81 ▼3.07 | 16.94 ▼87.84 |
Media Library /wp-admin/upload.php | 2.81 ▼0.42 | 18.06 ▼19.35 |
Behind Closed Doors /wp-admin/options-general.php?page=wp-behind-closed-doors | 2.81 | 17.72 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Behind Closed Doors
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.52 ▲0.13 | 1.91 ▲0.04 | 42.31 ▼10.45 |
Dashboard /wp-admin | 2,201 ▲13 | 5.83 ▼0.07 | 98.99 ▼2.35 | 38.39 ▼6.02 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▲0.04 | 37.50 ▼0.62 | 30.24 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,516 ▼26 | 17.39 ▼0.69 | 603.28 ▼58.79 | 79.22 ▲3.83 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.22 ▲0.01 | 99.08 ▼5.56 | 43.04 ▼1.31 |
Behind Closed Doors /wp-admin/options-general.php?page=wp-behind-closed-doors | 827 | 2.03 | 24.60 | 24.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/behind-closed-doors/classes/wp-behind-closed-doors.php+166
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-behind-closed-doors
- > Notice in wp-content/plugins/behind-closed-doors/classes/wp-behind-closed-doors.php+375
Trying to access array offset on value of type bool
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
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/behind-closed-doors/behind-closed-doors.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/behind-closed-doors/views/options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/behind-closed-doors/templates/login.php:10
- > PHP Warning
Use of undefined constant WP_BCD_SHORT_TITLE - assumed 'WP_BCD_SHORT_TITLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/behind-closed-doors/views/options.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 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
5 plugin tags: privacy, security, login, maintenance, maintenance-mode
behind-closed-doors/behind-closed-doors.php Passed 13 tests
"Behind Closed Doors" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
92 characters long description:
Keeps your entire site behind a page, with or without a login form, should you desire it so.
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
Good job! No executable or dangerous file extensions detected218 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 116 | 165 | 218 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 19 | |
▷ Static methods | 17 | 89.47% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.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
There were not PNG files found in your plugin