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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.07ms] Passed 4 tests
Server-side resources used by Post Lockdown
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.95 ▼8.71 |
Dashboard /wp-admin | 3.46 ▲0.15 | 46.78 ▼6.25 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 48.84 ▲3.68 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 80.38 ▼12.98 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.45 ▲4.72 |
Post Lockdown /wp-admin/options-general.php?page=postlockdown | 3.36 | 32.46 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Post Lockdown: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.44 ▼0.31 | 1.62 ▼0.49 | 43.24 ▲1.66 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲0.09 | 108.47 ▲0.34 | 39.66 ▼1.58 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 2.02 ▼0.03 | 39.50 ▲3.53 | 34.84 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.23 ▼0.19 | 659.64 ▲54.45 | 51.72 ▼2.49 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▲0.03 | 97.06 ▲1.30 | 42.09 ▼1.60 |
Post Lockdown /wp-admin/options-general.php?page=postlockdown | 996 | 2.43 | 41.55 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'PostLockdown' not found
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/post-lockdown/view/options-page.php:2
- > PHP Notice
Undefined variable: notices in wp-content/plugins/post-lockdown/view/admin-notices.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/post-lockdown/view/admin-notices.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/post-lockdown/post-lockdown.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
7 plugin tags: delete, capabilities, posts, trash, protect...
post-lockdown/post-lockdown.php 92% from 13 tests
Analyzing the main PHP file in "Post Lockdown" version 3.0.6
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected931 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 171 | 389 | 664 |
JavaScript | 2 | 34 | 41 | 177 |
CSS | 2 | 17 | 0 | 90 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 1 | 1.92% |
▷ Public methods | 48 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.69% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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
5 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 24.41KB | 24.86KB | 0.00% |
assets/banner-1544x500.png | 7.97KB | 8.37KB | 0.00% |
assets/icon-256x256.png | 1.36KB | 1.48KB | 0.00% |
assets/screenshot-1.png | 14.87KB | 15.09KB | 0.00% |
assets/screenshot-2.png | 4.59KB | 4.50KB | ▼ 2.08% |