84% buddypress-who-clicked-at-my-profile

Code Review | Buddypress Who clicked at my Profile?

WordPress plugin Buddypress Who clicked at my Profile? scored84%from 54 tests.

About plugin

  • Plugin page: buddypress-who-cl...
  • Plugin version: 3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2014
  • Latest release: Jul 25, 2016
  • Number of updates: 60
  • Update frequency: every 18.1 days
  • Top authors: quan_flo (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

80+ active /14,180 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Buddypress Who clicked at my Profile?
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.13 ▼4.60
Dashboard /wp-admin3.31 ▲0.0149.89 ▼4.09
Posts /wp-admin/edit.php3.36 ▲0.0053.30 ▲4.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.19 ▼7.56
Media Library /wp-admin/upload.php3.23 ▲0.0037.38 ▲3.06

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Buddypress Who clicked at my Profile?: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.091.63 ▼0.3742.66 ▼1.61
Dashboard /wp-admin2,192 ▲125.56 ▼0.1188.03 ▼9.1539.51 ▼2.82
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0339.92 ▼2.4037.00 ▼2.04
Add New Post /wp-admin/post-new.php1,526 ▼023.56 ▲0.59672.03 ▲39.2155.44 ▼7.03
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.09101.90 ▼6.9744.69 ▼1.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-who-clicked-at-my-profile/buddypress-who-clicked-at-my-profile.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-who-clicked-at-my-profile/plugin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
3 plugin tags: social network, profile, buddypress

buddypress-who-clicked-at-my-profile/buddypress-who-clicked-at-my-profile.php 92% from 13 tests

The entry point to "Buddypress Who clicked at my Profile?" version 3.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin265 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23758216
PO File1101541
JavaScript1208

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin