10% display-phpbb-forums

Code Review | Display phpBB Forums

WordPress plugin Display phpBB Forums scored10%from 54 tests.

About plugin

  • Plugin page: display-phpbb-forums
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Jan 31, 2014
  • Latest release: Feb 1, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: anybuy.vn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,419 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-includes/class-wpdb.php+2035
    mysqli_real_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)

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

This is a short check of server-side resources used by Display phpBB Forums
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.51 ▼3.26
Dashboard /wp-admin3.31 ▲0.0046.66 ▼5.62
Posts /wp-admin/edit.php3.36 ▲0.0044.04 ▼18.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.16 ▼25.85
Media Library /wp-admin/upload.php3.23 ▲0.0036.61 ▲1.77

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Display phpBB Forums
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.091.75 ▼0.0743.96 ▼0.13
Dashboard /wp-admin2,200 ▲95.81 ▲0.92100.07 ▼20.2038.81 ▼6.36
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0034.22 ▼15.1834.78 ▼12.69
Add New Post /wp-admin/post-new.php1,542 ▲2318.29 ▼5.11646.43 ▲27.3466.74 ▲15.14
Media Library /wp-admin/upload.php1,388 ▲64.21 ▼0.0596.33 ▼2.3642.57 ▼0.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 everything seems fine, this is not 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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-phpbb-forums/wpdphpbbf_main.php:10
    • > PHP Notice
      Undefined index: wpdphpbbf_hidden in wp-content/plugins/display-phpbb-forums/wpdphpbbf_admin.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/display-phpbb-forums/wpdphpbbf_admin.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid version format
You can take inspiration from this readme.txt

display-phpbb-forums/wpdphpbbf_main.php 85% from 13 tests

The principal PHP file in "Display phpBB Forums" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("display-phpbb-forums.php" instead of "wpdphpbbf_main.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2315107

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There are no PNG files in this plugin