84% bbpress-post-ratings

Code Review | bbPress Post Ratings

WordPress plugin bbPress Post Ratings scored 84% from 54 tests.

About plugin

  • Plugin page: bbpress-post-ratings
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 18, 2013
  • Latest release: Jan 18, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: destroflyer (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active / 4,176 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.45ms] Passed 4 tests

A check of server-side resources used by bbPress Post Ratings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.15 ▼2.41
Dashboard /wp-admin3.33 ▲0.0350.43 ▲4.41
Posts /wp-admin/edit.php3.38 ▲0.0342.88 ▼4.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.72 ▼8.18
Media Library /wp-admin/upload.php3.26 ▲0.0334.67 ▲0.94

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

bbPress Post Ratings: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15913.51 ▼0.788.60 ▲5.9944.04 ▼5.85
Dashboard /wp-admin2,204 ▲195.83 ▼0.07104.00 ▼10.2139.16 ▼1.84
Posts /wp-admin/edit.php2,090 ▼22.00 ▼0.0135.57 ▼3.0732.41 ▼1.82
Add New Post /wp-admin/post-new.php1,518 ▲423.15 ▲5.54637.48 ▼11.5554.23 ▼12.70
Media Library /wp-admin/upload.php1,395 ▲44.24 ▲0.0494.02 ▼4.0342.52 ▲0.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just 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/bbpress-post-ratings/plugin.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tested up to: Version format is invalid
Please take inspiration from this readme.txt

bbpress-post-ratings/plugin.php 92% from 13 tests

"bbPress Post Ratings" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bbpress-post-ratings.php" instead of "plugin.php")

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
No dangerous file extensions were detected190 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/thumbs_up_active.png0.53KB0.47KB▼ 11.23%
images/thumbs_down.png0.53KB0.46KB▼ 12.41%
images/thumbs_down_active.png0.53KB0.47KB▼ 10.33%
images/thumbs_up.png0.52KB0.45KB▼ 13.41%