Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.47ms] Passed 4 tests
Server-side resources used by BuddyPress Hovercards
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.64 ▼9.60 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.31 ▼4.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.43 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.83 ▲0.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.49 ▼2.15 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress Hovercards
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.22 ▼1.08 | 4.40 ▲2.60 | 40.47 ▼5.85 |
Dashboard /wp-admin | 2,200 ▲28 | 5.79 ▼0.07 | 105.04 ▼7.93 | 38.10 ▼7.77 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.01 | 39.65 ▼0.11 | 35.59 ▲3.87 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 23.15 ▲5.15 | 615.55 ▲9.05 | 49.52 ▲0.78 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.02 | 96.79 ▲2.12 | 41.51 ▼0.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_has_members() in wp-content/plugins/buddypress-hovercards/templates/hovercard.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 75% 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
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (Example hovercard using the template included in the plugin.)
- Requires at least: Invalid version format
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== buddypress-hovercards ===
) - Tested up to: Invalid version format
buddypress-hovercards/bp-hovercards.php 92% from 13 tests
The main file in "BuddyPress Hovercards" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("buddypress-hovercards.php" instead of "bp-hovercards.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
Everything looks great! No dangerous files found in this plugin449 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 56 | 39 | 305 |
PHP | 2 | 34 | 81 | 87 |
CSS | 2 | 9 | 4 | 36 |
PO File | 1 | 3 | 2 | 21 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 1 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/_inc/images/45pc_black.png | 0.12KB | 0.09KB | ▼ 21.14% |
screenshot-1.png | 75.43KB | 23.40KB | ▼ 68.98% |