Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.97ms] Passed 4 tests
Server-side resources used by Block Member Posting for BuddyPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.41 ▼8.51 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.26 ▼19.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.61 ▼5.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.22 ▼9.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.81 ▲0.56 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Block Member Posting for BuddyPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.28 ▼0.83 | 5.89 ▲3.76 | 43.14 ▼0.09 |
Dashboard /wp-admin | 2,206 ▲15 | 4.88 ▼1.02 | 111.13 ▲5.35 | 44.61 ▲1.33 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.05 | 39.74 ▲2.30 | 35.60 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.40 ▲0.44 | 637.34 ▼11.58 | 55.00 ▲6.16 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.02 | 97.03 ▼8.94 | 43.49 ▼1.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bp-block-member-posting/bp-block-member-posting.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bp-block-member-posting/templates/bp-block-members-admin-page.php:13
- > 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 Passed 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
4 plugin tags: block, members, post, buddypress
bp-block-member-posting/bp-block-member-posting.php Passed 13 tests
Analyzing the main PHP file in "Block Member Posting for BuddyPress" version 1.1.1
51 characters long description:
Block a member from making new posts for BuddyPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,052 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 277 | 410 | 1,035 |
CSS | 1 | 0 | 0 | 12 |
JavaScript | 1 | 4 | 13 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.40 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 29 | 72.50% |
▷ Protected methods | 5 | 12.50% |
▷ Private methods | 6 | 15.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 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
No PNG files were detected