89% bbp-voting

Code Review | bbPress Voting

WordPress plugin bbPress Voting scored89%from 54 tests.

About plugin

  • Plugin page: bbp-voting
  • Plugin version: 2.1.11.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 9, 2018
  • Latest release: Oct 26, 2023
  • Number of updates: 188
  • Update frequency: every 10.3 days
  • Top authors: natekinkead (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

800+ active /38,526 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.71ms] Passed 4 tests

Server-side resources used by bbPress Voting
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1040.52 ▲2.73
Dashboard /wp-admin3.40 ▲0.0647.56 ▼8.70
Posts /wp-admin/edit.php3.45 ▲0.1043.71 ▼3.68
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.08 ▼5.40
Media Library /wp-admin/upload.php3.32 ▲0.1033.19 ▼1.04
bbPress Voting /wp-admin/options-general.php?page=bbp_voting3.3038.91

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for bbPress Voting
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲11813.34 ▼1.019.97 ▲8.0642.72 ▲6.21
Dashboard /wp-admin2,193 ▲125.54 ▼0.1383.79 ▼11.8336.45 ▼5.58
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0433.32 ▼1.9135.85 ▼0.70
Add New Post /wp-admin/post-new.php1,529 ▲323.64 ▲0.12658.47 ▼71.3956.51 ▼2.69
Media Library /wp-admin/upload.php1,401 ▲14.21 ▼0.0095.24 ▼4.2143.29 ▼5.39
bbPress Voting /wp-admin/options-general.php?page=bbp_voting1,4912.0022.3831.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

bbp-voting/bbp-voting.php 92% from 13 tests

The main PHP script in "bbPress Voting" version 2.1.11.11 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "4.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,091 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP780160843
Sass1011148
JavaScript142073
JSON10026
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin