90% hookie-buddypress

Code Review | Hookie for BuddyPress

WordPress plugin Hookie for BuddyPress scored90%from 54 tests.

About plugin

  • Plugin page: hookie-buddypress
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Mar 22, 2016
  • Number of updates: 4
  • Update frequency: every 65.8 days
  • Top authors: mirkolofio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Hookie for BuddyPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.31 ▲5.35
Dashboard /wp-admin3.31 ▲0.0048.47 ▼1.36
Posts /wp-admin/edit.php3.36 ▲0.0046.81 ▼4.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.38 ▼15.63
Media Library /wp-admin/upload.php3.23 ▲0.0034.81 ▼2.59

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Hookie for BuddyPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▲0.141.61 ▼0.1444.01 ▲2.43
Dashboard /wp-admin2,198 ▲185.61 ▼0.0496.23 ▲10.1743.02 ▼6.19
Posts /wp-admin/edit.php2,082 ▼182.02 ▲0.0334.80 ▼7.1337.00 ▲3.39
Add New Post /wp-admin/post-new.php1,529 ▲323.70 ▲0.73685.53 ▲21.2564.37 ▲8.39
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0797.36 ▼15.4146.47 ▲0.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: developer, woocommerce, buddypress, filter hooks, action hooks

hookie-buddypress/hookie-buddypress.php Passed 13 tests

"Hookie for BuddyPress" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
110 characters long description:
Enables specific BuddyPress hooks to get shown into the page dom [Extension of Hookie (Visual Hook Reference)]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,007 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116351,007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin