Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼0.44ms] Passed 4 tests
This is a short check of server-side resources used by BuddyPress Global Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.39 | 38.89 ▼2.38 |
Dashboard /wp-admin | 3.73 ▲0.42 | 44.84 ▼0.16 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 49.87 ▲3.60 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 83.93 ▼2.80 |
Media Library /wp-admin/upload.php | 3.58 ▲0.36 | 39.18 ▲5.42 |
Global Search /wp-admin/admin.php?page=buddyboss-globalsearch | 3.55 | 33.28 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPress Global Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,095 ▲360 | 14.10 ▼0.67 | 17.07 ▲15.33 | 39.59 ▼8.95 |
Dashboard /wp-admin | 2,238 ▲50 | 5.83 ▲0.94 | 105.32 ▼7.20 | 77.22 ▲33.66 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 2.01 ▲0.02 | 37.99 ▼6.81 | 34.52 ▼4.85 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 18.02 ▼0.25 | 681.01 ▲70.51 | 61.13 ▲6.98 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.18 ▼0.00 | 98.67 ▼0.38 | 73.58 ▲28.14 |
Global Search /wp-admin/admin.php?page=buddyboss-globalsearch | 915 | 2.19 | 25.94 | 28.59 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/buddypress-global-search/templates/loop/awpcp_ad_listing-ajax.php
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/buddypress-global-search/templates/loop/member-ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/buddypress-global-search/includes/help-support.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function comment_author_link() in wp-content/plugins/buddypress-global-search/templates/loop/comment-ajax.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_group_permalink() in wp-content/plugins/buddypress-global-search/templates/loop/group.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/buddypress-global-search/templates/loop/post-ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/buddypress-global-search/templates/loop/post.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_member_permalink() in wp-content/plugins/buddypress-global-search/templates/loop/member.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function bbp_topic_permalink() in wp-content/plugins/buddypress-global-search/templates/loop/topic.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function buddyboss_global_search_load_template() in wp-content/plugins/buddypress-global-search/templates/results-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/buddypress-global-search/templates/loop/activity-comment-ajax.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
buddypress-global-search/buddypress-global-search.php Passed 13 tests
"BuddyPress Global Search" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
37 characters long description:
Ajax powered global BuddyPress search
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
There were no executable files found in this plugin6,883 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 1,017 | 1,574 | 3,121 |
JSON | 2 | 0 | 0 | 1,486 |
PO File | 8 | 480 | 679 | 1,259 |
JavaScript | 6 | 137 | 122 | 754 |
CSS | 3 | 18 | 17 | 248 |
SVG | 1 | 0 | 1 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.85 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 14 | 11.57% |
▷ Public methods | 90 | 74.38% |
▷ Protected methods | 11 | 9.09% |
▷ Private methods | 20 | 16.53% |
Functions | 30 | |
▷ Named functions | 28 | 93.33% |
▷ Anonymous functions | 2 | 6.67% |
Constants | 5 | |
▷ Global constants | 5 | 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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
assets/css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
assets/css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |