10% urwa-for-bbpress

Code Review | URWA for bbPress

WordPress plugin URWA for bbPress scored10%from 54 tests.

About plugin

  • Plugin page: urwa-for-bbpress
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2015
  • Latest release: Oct 30, 2015
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: Rob Smelik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /983 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/urwa-for-bbpress/urwa-for-bbpress.php+140
    Declaration of urwa_bbpress_widget::widget() should be compatible with WP_Widget::widget($args, $instance)

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.14ms] Passed 4 tests

Server-side resources used by URWA for bbPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.27 ▼41.26
Dashboard /wp-admin2.05 ▼1.265.68 ▼47.02
Posts /wp-admin/edit.php2.05 ▼1.315.46 ▼43.43
Add New Post /wp-admin/post-new.php2.05 ▼3.847.79 ▼88.83
Media Library /wp-admin/upload.php2.05 ▼1.186.96 ▼31.02

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_urwa_bbpress_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

URWA for bbPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.45 ▲0.262.26 ▲0.4740.39 ▼4.91
Dashboard /wp-admin2,195 ▲185.69 ▼0.0187.37 ▼17.7836.45 ▼7.87
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0136.97 ▲0.1733.88 ▼4.32
Add New Post /wp-admin/post-new.php1,545 ▲523.21 ▼0.00622.43 ▼90.2651.19 ▼14.57
Media Library /wp-admin/upload.php1,403 ▲64.25 ▲0.04101.56 ▼3.3844.09 ▼4.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/urwa-for-bbpress/urwa-for-bbpress.php+140
    Declaration of urwa_bbpress_widget::widget() should be compatible with WP_Widget::widget($args, $instance)
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_urwa_bbpress_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/urwa-for-bbpress/urwa-for-bbpress.php

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #2 (screenshot-2.jpg)
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

urwa-for-bbpress/urwa-for-bbpress.php Passed 13 tests

"URWA for bbPress" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
Selectively display widgets to logged in users based on standard bbPress user roles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin111 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34445111

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.82
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin