94% bp-whats-hot

Code Review | What's Hot Activity Tab for BuddyPress

WordPress plugin What's Hot Activity Tab for BuddyPress scored 94% from 54 tests.

About plugin

  • Plugin page: bp-whats-hot
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3
  • WordPress version: 5.8.1
  • First release: Aug 26, 2015
  • Latest release: Aug 26, 2015
  • Number of updates: 3
  • Update frequency: every 65.0 days
  • Top authors: edwardtownend (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,196 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼150.63ms] Passed 4 tests

This is a short check of server-side resources used by What's Hot Activity Tab for BuddyPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0137.03 ▲4.96
Dashboard /wp-admin3.07 ▲0.0144.07 ▲1.34
Posts /wp-admin/edit.php3.12 ▲0.0138.67 ▼6.73
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.35 ▼594.68
Media Library /wp-admin/upload.php3.01 ▲0.0129.07 ▼2.45

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

What's Hot Activity Tab for BuddyPress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13216.16 ▲0.588.71 ▼2.2351.37 ▲6.33
Dashboard /wp-admin2,967 ▲366.03 ▲0.06166.58 ▼17.18144.42 ▼6.23
Posts /wp-admin/edit.php2,736 ▼32.68 ▼0.0174.67 ▼25.79101.19 ▼40.64
Add New Post /wp-admin/post-new.php1,687 ▲418.86 ▲2.67379.20 ▼43.46117.79 ▼50.30
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.03182.61 ▲1.97133.66 ▼10.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-whats-hot/bp-whats-hot.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: buddypress, social networking, whats hot, activity, bp

bp-whats-hot/bp-whats-hot.php Passed 13 tests

"What's Hot Activity Tab for BuddyPress" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Adds a What's Hot Tab to the Activity Stream in BuddyPress.

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 plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192025

PHP code Passed 2 tests

This is a very shot review of 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 code0.10
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin