78% wp-w3all-phpbb-integration

Code Review | WP w3all phpBB

WordPress plugin WP w3all phpBB scored78%from 54 tests.

About plugin

  • Plugin page: wp-w3all-phpbb-in...
  • Plugin version: 2.7.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.5
  • WordPress version: 6.3.1
  • First release: Feb 1, 2016
  • Latest release: Dec 1, 2023
  • Number of updates: 1,542
  • Update frequency: every 1.9 days
  • Top authors: axewww (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

600+ active /67,014 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.67MB] [CPU: ▼0.63ms] Passed 4 tests

Server-side resources used by WP w3all phpBB
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2345.45 ▲4.07
Dashboard /wp-admin4.16 ▲0.8654.71 ▲3.13
Posts /wp-admin/edit.php4.20 ▲0.8549.95 ▲3.04
Add New Post /wp-admin/post-new.php6.68 ▲0.7989.84 ▼12.77
Media Library /wp-admin/upload.php4.02 ▲0.7944.01 ▲10.31
WP w3all /wp-admin/options-general.php?page=wp-w3all-options4.3339.45

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP w3all phpBB
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5714.30 ▼0.391.85 ▼0.0040.80 ▼4.51
Dashboard /wp-admin2,202 ▲245.62 ▲0.0386.18 ▼25.5537.65 ▼4.79
Posts /wp-admin/edit.php2,101 ▼62.13 ▲0.1739.15 ▼2.7434.75 ▲0.58
Add New Post /wp-admin/post-new.php1,529 ▲323.18 ▼0.37583.31 ▼95.1253.79 ▲1.26
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.0195.92 ▼20.3941.40 ▼6.32
WP w3all /wp-admin/options-general.php?page=wp-w3all-options2,0601.6627.5680.34

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 26× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wp-w3all-phpbb-integration/uninstall.php
    • > /wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_unotifications_short.php
    • > /wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_uonline_stats.php
    • > /wp-content/plugins/wp-w3all-phpbb-integration/wp_w3all.php
    • > /wp-content/plugins/wp-w3all-phpbb-integration/addons/custom_js_css.php
    • > /wp-content/plugins/wp-w3all-phpbb-integration/admin/wp_w3all_users_fix_phpbb_usernames.php
    • > /wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_login_form.php
    • > /wp-content/plugins/wp-w3all-phpbb-integration/admin/wp_w3all_phpbb_common_tasks.php
    • > /wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_custom_iframe_short.php
    • > /wp-content/plugins/wp-w3all-phpbb-integration/admin/wp_w3all_users_fix_wp_usernames.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all.widgets-phpbb.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: integration, phpbb, user, template, wordpress

wp-w3all-phpbb-integration/wp_w3all.php 92% from 13 tests

"WP w3all phpBB" version 2.7.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-w3all-phpbb-integration.php" instead of "wp_w3all.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin9,159 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP301,8009106,869
JavaScript53961072,290

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 136)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity153.20
▷ Minimum class complexity12.00
▷ Maximum class complexity679.00
Average method complexity11.15
▷ Minimum method complexity1.00
▷ Maximum method complexity136.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods75
▷ Static methods6282.67%
▷ Public methods6789.33%
▷ Protected methods00.00%
▷ Private methods810.67%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants46
▷ Global constants46100.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