Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.97ms] Passed 4 tests
This is a short check of server-side resources used by LH Restricted Post Status
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.85 ▼1.75 |
Dashboard /wp-admin | 3.49 ▲0.19 | 51.25 ▼0.88 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 48.92 ▼3.11 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 100.11 ▼2.14 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.26 ▲4.01 |
Restricted Post Status /wp-admin/options-general.php?page=lh-restricted-post-status/lh-restricted-post-status.php | 3.37 | 35.82 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
LH Restricted Post Status: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.64 ▲0.26 | 1.64 ▼0.24 | 42.94 ▲1.15 |
Dashboard /wp-admin | 2,219 ▲12 | 4.85 ▼0.13 | 102.00 ▼19.02 | 40.37 ▼5.40 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.08 ▲0.04 | 38.41 ▲3.08 | 35.21 ▼0.63 |
Add New Post /wp-admin/post-new.php | 6,561 ▲5,027 | 26.15 ▲2.85 | 957.19 ▲308.60 | 41.03 ▼14.74 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.03 | 96.82 ▼9.97 | 42.88 ▼4.51 |
Restricted Post Status /wp-admin/options-general.php?page=lh-restricted-post-status/lh-restricted-post-status.php | 810 | 2.15 | 24.20 | 28.83 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-restricted-post-status/lh-restricted-post-status.php
- > Notice in wp-content/plugins/lh-restricted-post-status/partials/option-settings.php+31
Trying to access array offset on value of type bool
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-restricted-post-status/lh-restricted-post-status.php
- > Warning in wp-content/plugins/lh-restricted-post-status/partials/option-settings.php+31
in_array() expects parameter 2 to be array, null given
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-restricted-post-status/partials/option-settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: admin, workflow, restricted, pages, posts...
lh-restricted-post-status/lh-restricted-post-status.php 85% from 13 tests
The main PHP script in "LH Restricted Post Status" version 1.03 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages/")
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin1,977 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 346 | 624 | 918 |
PO File | 5 | 320 | 409 | 753 |
JavaScript | 6 | 92 | 45 | 306 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 24 | 77.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 22.58% |
Functions | 18 | |
▷ Named functions | 18 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin