84% bbp-contacts

Code Review | bbPress Contacts

WordPress plugin bbPress Contacts scored84%from 54 tests.

About plugin

  • Plugin page: bbp-contacts
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 13, 2016
  • Latest release: Nov 23, 2016
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: elhardoum (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,570 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.00MB] [CPU: ▼4.89ms] Passed 4 tests

Server-side resources used by bbPress Contacts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0624.88 ▼15.32
Dashboard /wp-admin3.33 ▲0.0345.74 ▼0.51
Posts /wp-admin/edit.php3.38 ▲0.0245.29 ▼2.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.64 ▼1.13
Media Library /wp-admin/upload.php3.25 ▲0.0233.09 ▲1.05
bbPress Contacts /wp-admin/options-general.php?page=bbp-contacts3.3034.20
/wp-admin/admin.php?page=bbp-contacts-about3.2228.66
/wp-admin/admin.php?page=bbp-contacts-translate3.2230.71

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

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

Browser metrics Passed 4 tests

Checking browser requirements for bbPress Contacts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,469 ▼27713.21 ▼1.540.62 ▼1.2216.01 ▼31.86
Dashboard /wp-admin2,210 ▲184.84 ▼0.31105.28 ▼2.8242.10 ▲0.73
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0636.28 ▼3.9332.74 ▼2.13
Add New Post /wp-admin/post-new.php1,541 ▲723.49 ▲0.40667.08 ▲31.9561.29 ▲11.88
Media Library /wp-admin/upload.php1,392 ▲104.17 ▼0.05107.60 ▼4.9050.14 ▲5.91
bbPress Contacts /wp-admin/options-general.php?page=bbp-contacts8632.0226.7129.41
/wp-admin/admin.php?page=bbp-contacts-about8422.0322.6227.45
/wp-admin/admin.php?page=bbp-contacts-translate1,0562.0226.2829.65

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bbp-contacts/bbp-contacts.php
    • > /wp-content/plugins/bbp-contacts/Includes/Admin/Loader.php
    • > /wp-content/plugins/bbp-contacts/Includes/Admin/Screen.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
Please fix the following attributes:
  • Requires at least: Version format is invalid
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

bbp-contacts/bbp-contacts.php Passed 13 tests

The entry point to "bbPress Contacts" version 0.2.1 is a PHP file that has certain tags in its header comment area
21 characters long description:
bbPress Contacts Tool

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
No dangerous file extensions were detected888 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP416281696
JavaScript180106
CSS10086

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity43.33
▷ Minimum class complexity11.00
▷ Maximum class complexity88.00
Average method complexity5.23
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods2376.67%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
PNG images were not found in this plugin