Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.72MB] [CPU: ▼189.42ms] Passed 4 tests
A check of server-side resources used by BuddyMobile
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.91 ▼0.81 | 7.74 ▼14.13 |
Dashboard /wp-admin | 1.93 ▼1.12 | 8.44 ▼37.34 |
Posts /wp-admin/edit.php | 1.93 ▼1.18 | 6.35 ▼44.07 |
Add New Post /wp-admin/post-new.php | 1.93 ▼3.50 | 6.53 ▼644.85 |
Media Library /wp-admin/upload.php | 1.93 ▼1.07 | 6.99 ▼31.40 |
BuddyMobile /wp-admin/options-general.php?page=buddymobile/includes/bp-mobile-admin.php | 1.93 | 6.66 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 110 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for BuddyMobile
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲115 | 15.65 ▲0.42 | 11.55 ▲1.17 | 48.29 ▼3.05 |
Dashboard /wp-admin | 2,975 ▲41 | 5.88 ▼0.23 | 162.53 ▼3.36 | 107.19 ▼8.78 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 91.03 ▲11.35 | 91.50 ▼5.15 |
Add New Post /wp-admin/post-new.php | 1,597 ▼2,049 | 18.51 ▲0.15 | 387.83 ▼129.74 | 110.17 ▼2.17 |
Media Library /wp-admin/upload.php | 1,815 ▲11 | 5.03 ▼0.01 | 176.54 ▼11.35 | 121.88 ▲2.97 |
BuddyMobile /wp-admin/options-general.php?page=buddymobile/includes/bp-mobile-admin.php | 1,813 | 4.48 | 108.20 | 86.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/buddymobile/includes/bp-mobile-class.php+33
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=buddymobile/includes/bp-mobile-admin.php
- > Notice in wp-content/plugins/buddymobile/includes/bp-mobile-class.php+33
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 78× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/buddymobile/themes/mobile/iphone/header.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddymobile/includes/bp-mobile-loader.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_is_current_action() in wp-content/plugins/buddymobile/themes/mobile/iphone/buddypress/members/single/notifications/feedback-no-notifications.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/buddymobile/themes/mobile/iphone/page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/buddymobile/themes/mobile/iphone/404.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddymobile/themes/mobile/iphone/buddypress/members/single/settings/general.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_directory_members_search_form() in wp-content/plugins/buddymobile/themes/mobile/iphone/buddypress/members/index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/buddymobile/themes/mobile/iphone/buddypress/members/single/profile/change-avatar.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/buddymobile/themes/mobile/iphone/page-blog.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddymobile/themes/mobile/iphone/buddypress/members/activate.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #3, #4, #6 in buddymobile/assets to your readme.txt
buddymobile/loader.php 92% from 13 tests
"BuddyMobile" version 1.9.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("buddymobile.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
There were no executable files found in this plugin8,013 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 2,445 | 379 | 3,974 |
CSS | 4 | 206 | 94 | 1,948 |
JavaScript | 5 | 344 | 129 | 1,381 |
PO File | 1 | 299 | 918 | 710 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 30.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/mobile/iphone/css/images/navbutton.png | 0.56KB | 0.48KB | ▼ 13.31% |
themes/mobile/iphone/css/images/navleft.png | 0.81KB | 0.90KB | 0.00% |
themes/mobile/iphone/css/images/closed.png | 0.31KB | 0.21KB | ▼ 31.11% |
themes/mobile/iphone/css/images/home.png | 0.35KB | 0.28KB | ▼ 21.05% |
themes/mobile/iphone/css/images/arrow.png | 0.35KB | 0.28KB | ▼ 21.05% |