Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.39ms] Passed 4 tests
A check of server-side resources used by User Specific Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.82 ▼0.47 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.97 ▼0.15 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.64 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.99 ▼15.40 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.18 ▼1.19 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/user-specific-posts/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for User Specific Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.29 ▼1.08 | 2.00 ▲0.12 | 43.83 ▲1.55 |
Dashboard /wp-admin | 2,221 ▲18 | 5.83 ▼0.07 | 96.86 ▼5.03 | 43.73 ▼4.26 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.04 ▲0.03 | 34.68 ▼4.81 | 36.93 ▼5.78 |
Add New Post /wp-admin/post-new.php | 6,237 ▲4,706 | 19.44 ▼3.80 | 931.70 ▲275.02 | 51.61 ▼3.93 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.25 ▼0.01 | 106.54 ▲2.40 | 48.02 ▲2.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-specific-posts/user_specific_posts.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
3 plugin tags: user posts, post restriction, specific user
user-specific-posts/user_specific_posts.php 85% from 13 tests
The principal PHP file in "User Specific Posts" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("user-specific-posts.php" instead of "user_specific_posts.php")
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
Success! There were no dangerous files found in this plugin114 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 49 | 114 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin