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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.21 ▼3.12 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.62 ▼4.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.94 ▲2.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.21 ▼8.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.13 | 1.82 ▼0.31 | 42.85 ▼0.87 |
Dashboard /wp-admin | 2,206 ▲18 | 5.82 ▲0.94 | 103.51 ▼15.38 | 38.50 ▼9.32 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.02 | 40.11 ▲5.44 | 34.56 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 23.45 ▲5.86 | 657.35 ▼44.35 | 56.48 ▼4.94 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.19 ▼0.04 | 101.53 ▼26.62 | 44.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
LESS | 56 | 1,595 | 298 | 6,979 |
PHP | 44 | 1,175 | 1,905 | 3,298 |
CSS | 10 | 413 | 70 | 1,843 |
JavaScript | 57 | 329 | 237 | 1,286 |
HTML | 4 | 36 | 5 | 310 |
SVG | 2 | 0 | 0 | 194 |
Markdown | 1 | 1 | 0 | 2 |
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 code | 0.23 |
Average class complexity | 15.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 2 | 1.24% |
▷ Public methods | 153 | 95.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 4.97% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/combunity-forums.png | 6.19KB | 3.12KB | ▼ 49.57% |