Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.80MB] [CPU: ▼0.12ms] Passed 4 tests
A check of server-side resources used by User Submitted Posts – Enable Users to Submit Posts from the Front End
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.86 | 53.25 ▲15.68 |
Dashboard /wp-admin | 4.15 ▲0.80 | 52.92 ▼9.16 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 47.58 ▲0.42 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 85.51 ▼2.07 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 41.12 ▲10.33 |
Submitted Posts /wp-admin/options-general.php?page=user-submitted-posts | 4.02 | 46.03 |
Server storage [IO: ▲3.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 114 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
usp_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
category_children |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
User Submitted Posts – Enable Users to Submit Posts from the Front End: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲111 | 13.50 ▼0.76 | 13.57 ▲11.54 | 44.93 ▲1.61 |
Dashboard /wp-admin | 2,202 ▲28 | 5.60 ▼0.09 | 97.55 ▲3.04 | 43.58 ▲0.20 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.99 ▼0.02 | 35.99 ▼4.52 | 32.85 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.25 ▲0.22 | 691.38 ▼29.11 | 49.98 ▼7.02 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.03 | 94.05 ▼7.66 | 40.82 ▼3.05 |
Submitted Posts /wp-admin/options-general.php?page=user-submitted-posts | 3,498 | 3.13 | 45.96 | 97.63 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- category_children
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/user-submitted-posts/library/shortcode-access.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/user-submitted-posts/library/shortcode-misc.php:40
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/user-submitted-posts/recaptcha/ReCaptcha/RequestMethod/SocketPost.php:46
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/user-submitted-posts/recaptcha/ReCaptcha/RequestMethod/CurlPost.php:46
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/user-submitted-posts/recaptcha/ReCaptcha/RequestMethod/Post.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: frontend post, user post, share post, guest post, user submitted post...
user-submitted-posts/user-submitted-posts.php 85% from 13 tests
"User Submitted Posts – Enable Users to Submit Posts from the Front End" version 20231102...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20231102...")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin28,419 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 29 | 11,774 | 13,108 | 23,722 |
PHP | 25 | 2,137 | 882 | 4,316 |
JavaScript | 5 | 25 | 37 | 244 |
CSS | 3 | 46 | 22 | 137 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 5.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 123 | |
▷ Named functions | 122 | 99.19% |
▷ Anonymous functions | 1 | 0.81% |
Constants | 18 | |
▷ Global constants | 6 | 33.33% |
▷ Class constants | 12 | 66.67% |
▷ Public constants | 12 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/usp-login-bg.png | 0.19KB | 0.19KB | ▼ 0.52% |
images/usp-pro.png | 8.83KB | 4.74KB | ▼ 46.29% |
(invalid) images/usp-login-bg-alt.png | 2.67KB | 0.00KB | ▼ 100.00% |
resources/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
resources/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |