90% bp-avatar-hover

Code Review | Buddypress Avatar Hover

WordPress plugin Buddypress Avatar Hover scored90%from 54 tests.

About plugin

  • Plugin page: bp-avatar-hover
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Jun 7, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: aghajoon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,694 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.85ms] Passed 4 tests

An overview of server-side resources used by Buddypress Avatar Hover
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.98 ▲2.61
Dashboard /wp-admin3.31 ▲0.0147.19 ▲0.55
Posts /wp-admin/edit.php3.36 ▲0.0147.29 ▼6.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.64 ▼11.84
Media Library /wp-admin/upload.php3.24 ▲0.0136.88 ▲5.21

Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Buddypress Avatar Hover
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11613.29 ▼1.0610.29 ▲8.7439.99 ▼0.93
Dashboard /wp-admin2,198 ▲245.73 ▲0.1582.48 ▼11.2038.17 ▼5.58
Posts /wp-admin/edit.php2,097 ▲152.02 ▲0.0035.62 ▼7.2931.27 ▼1.93
Add New Post /wp-admin/post-new.php1,528 ▼923.19 ▲5.03605.65 ▼24.8684.42 ▲14.62
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.10111.05 ▲9.9448.30 ▲5.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (pop tooltipster), #2 (pop tooltipster)
The official readme.txt might help

bp-avatar-hover/bp-avatar-hover.php Passed 13 tests

The entry point to "Buddypress Avatar Hover" version 1.0 is a PHP file that has certain tags in its header comment area
75 characters long description:
buddypress Avatar Hover add pop box when hovering on member/group avatar .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,726 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2246200971
CSS1529477
PHP1298278

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png89.20KB29.84KB▼ 66.54%
screenshot-2.png53.28KB18.16KB▼ 65.92%