Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.70ms] Passed 4 tests
Server-side resources used by WP Post ACL
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.75 ▲2.02 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.38 ▼11.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.59 ▼4.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.98 ▼12.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.86 ▲4.44 |
Server storage [IO: ▲0.49MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Post ACL: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.74 ▲0.36 | 1.96 ▲0.34 | 43.41 ▲0.02 |
Dashboard /wp-admin | 2,206 ▲54 | 4.86 ▼0.75 | 101.03 ▲2.16 | 38.70 ▲1.38 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.04 | 35.23 ▼1.27 | 35.40 ▲0.66 |
Add New Post /wp-admin/post-new.php | 6,229 ▲4,710 | 18.78 ▼4.39 | 875.29 ▲214.74 | 59.60 ▲1.90 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▲0.01 | 96.44 ▼3.50 | 43.00 ▼2.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-post-acl/wp-post-acl.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: allow, post, editor, restrict, permissions...
wp-post-acl/wp-post-acl.php Passed 13 tests
The entry point to "WP Post ACL" version 1.0.1 is a PHP file that has certain tags in its header comment area
51 characters long description:
A simple way to control who can edit posts or pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected525 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 104 | 217 | 441 |
PO File | 1 | 8 | 8 | 41 |
Markdown | 1 | 17 | 0 | 29 |
JSON | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 19.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 6 | 18.18% |
▷ Public methods | 30 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.09% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.43MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 8.89KB | 5.54KB | ▼ 37.74% |
assets/banner-1544x500.png | 23.59KB | 9.86KB | ▼ 58.20% |
assets/screenshot-1.png | 363.62KB | 116.39KB | ▼ 67.99% |
assets/icon-256x256.png | 24.65KB | 17.37KB | ▼ 29.54% |
assets/banner-772x250.png | 17.45KB | 8.79KB | ▼ 49.62% |