89% bbp-like

Code Review | Like for bbPress

WordPress plugin Like for bbPress scored 89% from 54 tests.

About plugin

  • Plugin page: bbp-like
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 13, 2020
  • Latest release: Jul 2, 2022
  • Number of updates: 4
  • Update frequency: every 210.2 days
  • Top authors: wwwbbpdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 644 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.76ms] Passed 4 tests

A check of server-side resources used by Like for bbPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.57 ▲3.98
Dashboard /wp-admin3.31 ▲0.0146.08 ▼4.28
Posts /wp-admin/edit.php3.36 ▲0.0146.52 ▼3.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.75 ▼2.07
Media Library /wp-admin/upload.php3.24 ▲0.0132.75 ▼0.93

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Like for bbPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲1413.23 ▲0.022.21 ▲0.4745.49 ▲1.65
Dashboard /wp-admin2,209 ▼05.86 ▲0.0195.09 ▼14.8440.21 ▼1.93
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0438.19 ▼0.6036.44 ▲1.01
Add New Post /wp-admin/post-new.php1,519 ▼1423.21 ▲0.20624.52 ▼58.6055.03 ▲2.94
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0298.80 ▼2.4948.81 ▲0.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% 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
Attributes that require attention:
  • Requires at least: Invalid version format
  • Tested up to: Invalid version format
You can take inspiration from this readme.txt

bbp-like/bbp-like.php 85% from 13 tests

The main PHP file in "Like for bbPress" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
No dangerous file extensions were detected292 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15717277
CSS14015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/images/likedit.png3.78KB2.04KB▼ 46.16%
asset/images/likeit.png2.25KB1.71KB▼ 24.02%