83% bp-fan-page

Code Review | BP Fan Page

WordPress plugin BP Fan Page scored 83% from 54 tests.

About plugin

  • Plugin page: bp-fan-page
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 18, 2019
  • Latest release: Feb 10, 2021
  • Number of updates: 19
  • Update frequency: every 38.1 days
  • Top authors: Venutius (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 2,581 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.24ms] Passed 4 tests

Server-side resources used by BP Fan Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.62 ▼0.22
Dashboard /wp-admin3.35 ▲0.0546.74 ▲0.02
Posts /wp-admin/edit.php3.40 ▲0.0447.89 ▲3.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.08 ▼3.86
Media Library /wp-admin/upload.php3.27 ▲0.0437.45 ▲4.10

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BP Fan Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼1.401.89 ▼0.2943.75 ▼1.50
Dashboard /wp-admin2,209 ▲214.85 ▼0.05109.10 ▼1.0839.97 ▼2.73
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0039.42 ▲6.6935.03 ▼2.76
Add New Post /wp-admin/post-new.php1,514 ▼1917.51 ▼5.40651.56 ▼23.2455.00 ▼15.88
Media Library /wp-admin/upload.php1,385 ▼34.24 ▼0.03100.43 ▼2.7443.66 ▼1.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 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-fan-page/bp-fan-page.php:38

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Please a description for screenshot #1 in bp-fan-page/assets to your readme.txt
You can take inspiration from this readme.txt

bp-fan-page/bp-fan-page.php Passed 13 tests

The entry point to "BP Fan Page" version 1.1.4 is a PHP file that has certain tags in its header comment area
129 characters long description:
This plugin give grou administratrs the option to turn a group into a Fan Page, meaning for members it is an announce only group.

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 plugin225 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14954193
PO File16932

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin