84% bbp-valoration

Code Review | bbp-valoration

WordPress plugin bbp-valoration scored 84% from 54 tests.

About plugin

  • Plugin page: bbp-valoration
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Aug 8, 2015
  • Number of updates: 10
  • Update frequency: every 3.2 days
  • Top authors: k2klettern (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,663 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.76ms] Passed 4 tests

Analyzing server-side resources used by bbp-valoration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.13 ▼4.02
Dashboard /wp-admin3.31 ▲0.0045.66 ▼4.41
Posts /wp-admin/edit.php3.36 ▲0.0045.00 ▲2.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.05 ▲4.25
Media Library /wp-admin/upload.php3.23 ▲0.0033.80 ▼0.83

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for bbp-valoration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.67 ▼0.771.68 ▼0.5040.99 ▼2.98
Dashboard /wp-admin2,206 ▲154.83 ▼0.11112.48 ▼3.2944.17 ▼3.85
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0740.86 ▲6.7335.32 ▲0.56
Add New Post /wp-admin/post-new.php1,519 ▼1422.97 ▼0.38621.29 ▼45.3653.07 ▼1.92
Media Library /wp-admin/upload.php1,391 ▲94.22 ▲0.0596.40 ▼6.8942.08 ▼3.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bbp-valoration/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-valoration/bbp-valoration.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-valoration/functions.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: likes, thumbsup, count, bbpress, widget...

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

The principal PHP file in "bbp-valoration" v. 0.1.1 is loaded by WordPress automatically on each request
90 characters long description:
Adds thumbsup, visits and replies count to topics on bbpress, display results on a widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin352 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP43837195
PO File2262690
JavaScript13039
CSS152128

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/Thumbs_Up_80x80.png1.30KB1.19KB▼ 8.83%
img/Thumbs_Up_30.png0.59KB0.62KB0.00%
img/Thumbs_Up_50.png0.91KB0.91KB0.11%