79% bp-who-favorited

Code Review | BP Who Favorited

WordPress plugin BP Who Favorited scored79%from 54 tests.

About plugin

  • Plugin page: bp-who-favorited
  • Plugin version: 1.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: May 1, 2019
  • Number of updates: 9
  • Update frequency: every 23.1 days
  • Top authors: mastershas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,745 total downloads

Benchmarks

Plugin footprint 65% from 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.40ms] Passed 4 tests

A check of server-side resources used by BP Who Favorited
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.38 ▼0.07
Dashboard /wp-admin3.35 ▼0.0050.47 ▼15.44
Posts /wp-admin/edit.php3.46 ▲0.1052.81 ▼6.02
Add New Post /wp-admin/post-new.php5.93 ▲0.04100.88 ▼12.06
Media Library /wp-admin/upload.php3.27 ▲0.0439.55 ▲2.59

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables
wp_bpwhofav
New WordPress options
theysaidso_admin_options
widget_recent-comments
bwf_db_version
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

BP Who Favorited: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.091.92 ▼0.4443.02 ▲4.52
Dashboard /wp-admin2,198 ▲215.63 ▼0.0492.27 ▲0.6839.96 ▼5.25
Posts /wp-admin/edit.php2,100 ▼52.04 ▲0.0137.65 ▼5.3834.67 ▼0.40
Add New Post /wp-admin/post-new.php1,526 ▼223.07 ▲0.08660.61 ▼33.1154.02 ▼6.96
Media Library /wp-admin/upload.php1,397 ▼34.15 ▲0.02102.61 ▼2.5144.39 ▼1.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_bpwhofav
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • bwf_db_version
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "paypal.me/mastershas"
  • Screenshots: A description for screenshot #2 is required in bp-who-favorited/assets to your readme.txt
You can look at the official readme.txt

bp-who-favorited/bp-who-favorited.php Passed 13 tests

Analyzing the main PHP file in "BP Who Favorited" version 1.1
63 characters long description:
A plugin to show who all have favorited the buddypress activity

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin231 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP66950218
CSS12013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity3.25
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin