10% bp-favorite-groups

Code Review | BP Favorite Groups

WordPress plugin BP Favorite Groups scored10%from 54 tests.

About plugin

  • Plugin page: bp-favorite-groups
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.3
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Aug 24, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,266 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/bp-favorite-groups/sp-favorite-groups.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; SP_Favorite_Groups has a deprecated constructor

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

Analyzing server-side resources used by BP Favorite Groups
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.04 ▼1.99
Dashboard /wp-admin3.31 ▲0.0151.85 ▲0.31
Posts /wp-admin/edit.php3.36 ▲0.0048.46 ▼4.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.60 ▼10.54
Media Library /wp-admin/upload.php3.23 ▲0.0036.96 ▼2.29

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for BP Favorite Groups
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.081.80 ▼0.5540.61 ▼8.56
Dashboard /wp-admin2,209 ▲185.90 ▲0.99101.48 ▼9.2940.22 ▼4.03
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0136.60 ▼1.0932.69 ▼2.45
Add New Post /wp-admin/post-new.php1,533 ▼923.18 ▲4.69638.96 ▼27.2351.71 ▼6.90
Media Library /wp-admin/upload.php1,391 ▲64.25 ▼0.12102.43 ▼0.7043.29 ▼5.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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 everything seems fine, this is not 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-favorite-groups/sp-favorite-groups.php:318

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: buddypress, groups, buddypress groups, socialnetwork

bp-favorite-groups/sp-favorite-groups.php 85% from 13 tests

"BP Favorite Groups" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-favorite-groups.php" instead of "sp-favorite-groups.php")
  • 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 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected263 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15037234
PO File16729

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin