Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.23ms] Passed 4 tests
Analyzing server-side resources used by Buddy Views
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 38.97 ▼2.03 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.72 ▼0.76 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 43.97 ▼2.01 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 81.83 ▼8.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.23 ▲2.73 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 59 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_rt_buddy_views_log |
New WordPress options |
---|
RT_BUDDY_VIEWS_DB_VERSIONS |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_buddy_views_most_viewed_members |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Buddy Views
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 13.65 ▼0.75 | 7.95 ▲5.94 | 42.93 ▼6.75 |
Dashboard /wp-admin | 2,210 ▲22 | 4.83 ▼0.30 | 110.52 ▼5.73 | 43.05 ▲0.72 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.02 ▲0.02 | 35.13 ▼0.02 | 32.53 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,518 ▼16 | 17.69 ▼5.47 | 695.40 ▲23.72 | 63.80 ▲4.31 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.05 | 96.49 ▼5.68 | 42.04 ▼1.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 tables were found after uninstall: 1 table
- wp_rt_buddy_views_log
- Zombie WordPress options were found after uninstall: 8 options
- RT_BUDDY_VIEWS_DB_VERSIONS
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_buddy_views_most_viewed_members
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_displayed_user_id() in wp-content/plugins/buddy-views/templates/bv-profile-view-chart.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddy-views/includes/lib/rt-lib.php:40
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/buddy-views/admin/classes/abstracts/abstract-buddy-views-widget.php:11
- > 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, but this is not an exhaustive test
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 need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== buddy-views ===
)
buddy-views/buddy-views.php Passed 13 tests
The primary PHP file in "Buddy Views" version 1.1 is used by WordPress to initiate all plugin functionality
24 characters long description:
BuddyPress Profile Views
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,465 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 407 | 1,207 | 1,961 |
Markdown | 6 | 190 | 0 | 336 |
JavaScript | 4 | 8 | 91 | 87 |
JSON | 4 | 0 | 0 | 52 |
Sass | 2 | 3 | 0 | 23 |
CSS | 3 | 0 | 18 | 6 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 184)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 17.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 184.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 11 | 12.09% |
▷ Public methods | 86 | 94.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.49% |
Functions | 11 | |
▷ Named functions | 11 | 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
There were not PNG files found in your plugin