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.28MB] [CPU: ▼4.94ms] Passed 4 tests
This is a short check of server-side resources used by BP Post Status
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.45 ▲0.99 | 52.43 ▲10.55 |
Dashboard /wp-admin | 4.28 ▲0.98 | 55.33 ▲9.30 |
Posts /wp-admin/edit.php | 4.33 ▲0.98 | 58.43 ▲8.16 |
Add New Post /wp-admin/post-new.php | 4.06 ▼1.82 | 48.45 ▼45.23 |
Media Library /wp-admin/upload.php | 4.20 ▲0.97 | 42.82 ▲8.03 |
BP Post Status /wp-admin/options-general.php?page=bpps | 4.17 | 53.27 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
recovery_mode_email_last_sent |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BP Post Status
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲148 | 13.62 ▼0.78 | 6.42 ▲4.33 | 43.84 ▲4.58 |
Dashboard /wp-admin | 2,216 ▲28 | 4.85 ▼0.03 | 113.38 ▲0.64 | 38.73 ▼1.91 |
Posts /wp-admin/edit.php | 2,149 ▲57 | 2.09 ▲0.05 | 42.66 ▲1.03 | 36.50 ▲0.13 |
Add New Post /wp-admin/post-new.php | 45 ▼1,474 | 0.44 ▼22.56 | 0.07 ▼694.51 | 8.72 ▼46.89 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.33 ▲0.11 | 108.46 ▲1.97 | 65.62 ▲22.52 |
BP Post Status /wp-admin/options-general.php?page=bpps | 3,774 | 2.16 | 29.61 | 32.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_super_admin() in wp-content/plugins/bp-post-status/templates/group-posts-moderation.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/bp-post-status/templates/my-posts-moderation.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function bpps_get_home_query() in wp-content/plugins/bp-post-status/templates/home.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/bp-post-status/templates/my-posts-pending.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/bp-post-status/templates/single-post.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/bp-post-status/templates/shortcode-posts.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_is_active() in wp-content/plugins/bp-post-status/includes/buddypress/bp-admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/bp-post-status/templates/sticky-posts.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/bp-post-status/templates/group-posts.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_displayed_user_id() in wp-content/plugins/bp-post-status/templates/my-posts.php:6
- > 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 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
bp-post-status/loader.php 92% from 13 tests
The main PHP script in "BP Post Status" version 1.8.12 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bp-post-status.php" instead of "loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected4,826 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 2,911 | 1,260 | 4,654 |
JavaScript | 5 | 35 | 23 | 172 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 54.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 6.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 124 | |
▷ Static methods | 30 | 24.19% |
▷ Public methods | 119 | 95.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.03% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected