Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/buddybar-widget/buddybar-widget.php+53
require(wp-content/plugins/buddybar-widget/includes/class-buddybar-widget.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.00MB] [CPU: ▼188.22ms] Passed 4 tests
An overview of server-side resources used by BuddyBar Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 27.06 ▼0.19 |
Dashboard /wp-admin | 3.06 ▼0.00 | 29.50 ▼14.22 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 28.92 ▼12.84 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 68.03 ▼721.19 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 22.30 ▼4.64 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyBar Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲40 | 15.70 ▼0.38 | 4.84 ▼4.25 | 72.72 ▼19.13 |
Dashboard /wp-admin | 2,930 ▲31 | 6.14 ▲0.06 | 118.10 ▼50.58 | 166.25 ▼42.61 |
Posts /wp-admin/edit.php | 2,743 ▲6 | 3.24 ▲0.00 | 63.42 ▼18.44 | 137.27 ▼42.35 |
Add New Post /wp-admin/post-new.php | 3,743 ▲36 | 18.83 ▼0.26 | 414.47 ▼144.56 | 166.35 ▼34.81 |
Media Library /wp-admin/upload.php | 1,752 ▲3 | 5.52 ▲0.01 | 141.63 ▼28.70 | 185.54 ▼47.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddybar-widget/classes/views/login-form.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/buddybar-widget/classes/views/form.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/buddybar-widget/classes/views/widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: buddybar, widget, buddypress
buddybar-widget/buddybar-widget.php 92% from 13 tests
The principal PHP file in "BuddyBar Widget" v. 0.21 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin386 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 247 | 538 | 349 |
Sass | 1 | 8 | 0 | 36 |
CSS | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 3 | 9.68% |
▷ Public methods | 23 | 74.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 25.81% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 images were found in this plugin