10% combunity-forums

Code Review | Combunity Forums

WordPress plugin Combunity Forums scored 10% from 54 tests.

About plugin

  • Plugin page: combunity-forums
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Dec 25, 2016
  • Latest release: Jan 31, 2017
  • Number of updates: 29
  • Update frequency: every 1.2 days
  • Top authors: fifthsegment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 911 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Compile error in wp-content/plugins/combunity-forums/public/class-combunity-ashes-public.php+334
    Cannot use lexical variable $opts as a parameter name

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

A check of server-side resources used by Combunity Forums
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.21 ▼3.12
Dashboard /wp-admin3.31 ▲0.0046.62 ▼4.24
Posts /wp-admin/edit.php3.36 ▲0.0046.94 ▲2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.21 ▼8.26
Media Library /wp-admin/upload.php3.23 ▲0.0034.92 ▼0.04

Server storage [IO: ▲1.43MB] [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: 209 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Combunity Forums: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.131.82 ▼0.3142.85 ▼0.87
Dashboard /wp-admin2,206 ▲185.82 ▲0.94103.51 ▼15.3838.50 ▼9.32
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0240.11 ▲5.4434.56 ▲1.85
Add New Post /wp-admin/post-new.php1,519 ▲523.45 ▲5.86657.35 ▼44.3556.48 ▼4.94
Media Library /wp-admin/upload.php1,382 ▼34.19 ▼0.04101.53 ▼26.6244.59 ▼66.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/combunity-forums/templates/loader.php
    • > /wp-content/plugins/combunity-forums/public/partials/combunity-ashes-public-display.php
  • 30× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include(/templates/cpost/body.php): failed to open stream: No such file or directory in wp-content/plugins/combunity-forums/templates/ipage/edit.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/combunity-forums/admin/partials/combunity-ashes-tab-installer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/combunity-forums/templates/comments.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Combunity_Api() in wp-content/plugins/combunity-forums/templates/ipage/user.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/combunity-forums/templates/ipage/post-thread.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Combunity_Api() in wp-content/plugins/combunity-forums/templates/cpost/comment-single.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Combunity_Api() in wp-content/plugins/combunity-forums/templates/cpost/belowtitle.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_by() in wp-content/plugins/combunity-forums/templates/author/pagetitle.php:5
    • > PHP Warning
      include(): Failed opening '/templates/cpost-single.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/combunity-forums/templates/ipage/edit.php on line 21
    • > PHP Warning
      include(/templates/cpost-single.php): failed to open stream: No such file or directory in wp-content/plugins/combunity-forums/templates/ipage/edit.php on line 21

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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: forums, comments, discussion forums, combunity

combunity-forums/combunity-ashes.php 77% from 13 tests

The main PHP script in "Combunity Forums" version 2.1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("combunity-forums.php" instead of "combunity-ashes.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 345 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin13,912 lines of code in 174 files:
LanguageFilesBlank linesComment linesLines of code
LESS561,5952986,979
PHP441,1751,9053,298
CSS10413701,843
JavaScript573292371,286
HTML4365310
SVG200194
Markdown1102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity15.59
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods161
▷ Static methods21.24%
▷ Public methods15395.03%
▷ Protected methods00.00%
▷ Private methods84.97%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/assets/combunity-forums.png6.19KB3.12KB▼ 49.57%