10% wp-united

Code Review | WP-United : phpBB WordPress Integration

WordPress plugin WP-United : phpBB WordPress Integration scored10%from 54 tests.

About plugin

  • Plugin page: wp-united
  • Plugin version: 0.9.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2012
  • Latest release: May 21, 2014
  • Number of updates: 146
  • Update frequency: every 3.6 days
  • Top authors: Jhong (100%)

Code review

54 tests

User reviews

52 reviews

Install metrics

200+ active /57,002 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-united/debugger.php+82
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.58MB] [CPU: ▼62.56ms] Passed 4 tests

An overview of server-side resources used by WP-United : phpBB WordPress Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.42 ▼1.056.12 ▼45.96
Dashboard /wp-admin2.44 ▼0.917.78 ▼59.15
Posts /wp-admin/edit.php2.44 ▼0.929.69 ▼40.21
Add New Post /wp-admin/post-new.php2.44 ▼3.457.45 ▼104.92
Media Library /wp-admin/upload.php2.44 ▼0.799.17 ▼25.35
Support WP-United /wp-admin/admin.php?page=wp-united-support2.447.16
Get help /wp-admin/admin.php?page=wp-united-help2.447.43
Setup / Status /wp-admin/admin.php?page=wp-united-setup2.447.63

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 131 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
wpu-last-run
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

WP-United : phpBB WordPress Integration: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.34 ▼0.391.85 ▲0.2440.19 ▼2.05
Dashboard /wp-admin2,214 ▲375.56 ▼0.0487.04 ▼19.4092.84 ▲49.49
Posts /wp-admin/edit.php2,131 ▲281.98 ▼0.0237.33 ▼0.9034.14 ▼3.04
Add New Post /wp-admin/post-new.php1,556 ▲2823.37 ▲0.25752.58 ▲98.6758.09 ▼7.58
Media Library /wp-admin/upload.php1,428 ▲374.12 ▼0.05113.67 ▲9.3476.98 ▲32.10
Support WP-United /wp-admin/admin.php?page=wp-united-support9462.0423.3126.82
Get help /wp-admin/admin.php?page=wp-united-help1,0122.1524.2835.96
Setup / Status /wp-admin/admin.php?page=wp-united-setup1,1042.6054.6252.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-united/debugger.php+82
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • wpu-last-run
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-united-setup
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/wp-united/debugger.php+82
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-united-setup
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-united-setup
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=wp-united-setup
    • > Notice in wp-content/plugins/wp-united/settings-panel.php+445
    Undefined variable: showBackupPath

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_United_Extra' not found in wp-content/plugins/wp-united/extras/quickpoll/main.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-united/extras/quickpoll/widget.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=wp-united-support
    • > Network (severe)
    https://checkout.google.com/buttons/support.gif?merchant_id=360787695278690&w=130&h=50&style=white&variant=text - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

wp-united/wp-united.php 92% from 13 tests

The main PHP script in "WP-United : phpBB WordPress Integration" version 0.9.2.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)

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
No dangerous file extensions were detected31,259 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP283,3062,76010,312
PO File93,7904,1199,952
JavaScript161,6002,2229,788
CSS41541181,127
HTML292880

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity42.30
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes516.67%
▷ Concrete classes2583.33%
▷ Final classes00.00%
Methods386
▷ Static methods41.04%
▷ Public methods32283.42%
▷ Protected methods184.66%
▷ Private methods4611.92%
Functions120
▷ Named functions120100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants26100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
51 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/filetree/html.png0.72KB0.75KB0.00%
images/filetree/folder_open.png0.57KB0.60KB0.00%
images/settings/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
images/settings/borderBottomLeft.png0.21KB0.20KB▼ 4.19%
images/filetree/css.png0.60KB0.59KB▼ 2.75%