Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.97MB] [CPU: ▲6.97ms] Passed 4 tests
An overview of server-side resources used by Discussion Board - WordPress Forum Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.17 ▲0.71 | 40.74 ▲0.95 |
Dashboard /wp-admin | 4.36 ▲1.06 | 56.66 ▲10.33 |
Posts /wp-admin/edit.php | 4.48 ▲1.12 | 58.08 ▲8.81 |
Add New Post /wp-admin/post-new.php | 6.94 ▲1.05 | 105.04 ▲11.73 |
Media Library /wp-admin/upload.php | 4.28 ▲1.05 | 45.35 ▲7.79 |
All Topics /wp-admin/edit.php?post_type=discussion-topics | 4.33 | 42.19 |
Getting Started /wp-admin/edit.php?post_type=discussion-topics&page=getting_started | 4.30 | 37.66 |
Settings /wp-admin/edit.php?post_type=discussion-topics&page=discussion_board | 4.31 | 46.11 |
Add New /wp-admin/post-new.php?post_type=discussion-topics | 4.52 | 56.94 |
Server storage [IO: ▲0.77MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 12 new options
New WordPress options |
---|
ctdb_install_date |
ctdb_design_settings |
db_upgraded |
ctdb_options_settings |
widget_recent-posts |
can_compress_scripts |
ctdb_user_settings |
ctdb_done_redirect |
theysaidso_admin_options |
ctdb_wizard_done |
... |
Browser metrics Passed 4 tests
Discussion Board - WordPress Forum Plugin: 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,925 ▲179 | 13.68 ▼0.88 | 4.87 ▲2.89 | 40.73 ▼2.18 |
Dashboard /wp-admin | 2,248 ▲63 | 4.85 ▼0.04 | 96.67 ▼19.88 | 41.49 ▼6.41 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.05 ▲0.04 | 39.19 ▼4.43 | 36.22 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.02 ▼0.26 | 617.04 ▼89.20 | 49.12 ▼5.52 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.22 ▼0.04 | 95.36 ▼22.13 | 42.17 ▼4.16 |
All Topics /wp-admin/edit.php?post_type=discussion-topics | 1,143 | 1.96 | 33.76 | 29.91 |
Getting Started /wp-admin/edit.php?post_type=discussion-topics&page=getting_started | 982 | 2.04 | 24.96 | 53.15 |
Settings /wp-admin/edit.php?post_type=discussion-topics&page=discussion_board | 2,087 | 7.22 | 145.02 | 72.14 |
Add New /wp-admin/post-new.php?post_type=discussion-topics | 2,579 | 7.65 | 170.63 | 65.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 12 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- ctdb_options_settings
- ctdb_wizard_done
- ctdb_user_settings
- widget_theysaidso_widget
- ctdb_install_date
- ctdb_done_redirect
- db_upgraded
- ...
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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Trait 'WPDiscussionBoard\\Traits\\Singleton' not found in wp-content/plugins/wp-discussion-board/includes/classes/class-bootstrap.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDiscussionBoard\\Admin\\get_option() in wp-content/plugins/wp-discussion-board/templates/admin/getting-started.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDiscussionBoard\\plugin_dir_url() in wp-content/plugins/wp-discussion-board/includes/config/config.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-discussion-board/templates/archive-discussion-topics.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-discussion-board/templates/single-discussion-topics.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDiscussionBoard\\Admin\\esc_html_e() in wp-content/plugins/wp-discussion-board/templates/admin/free-license-form.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/wp-discussion-board/templates/comments-classic-forum.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-discussion-board/includes/helpers/deprecated.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: forum wordpress, wordpress forum, wordpress forum plugin, wordpress forum plugin free, forum plugin
wp-discussion-board/wp-discussion-board.php Passed 13 tests
The entry point to "Discussion Board - WordPress Forum Plugin" version 2.5.1 is a PHP file that has certain tags in its header comment area
70 characters long description:
Discussion Board is an easy way to add a forum to your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin8,258 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,125 | 1,687 | 5,083 |
PO File | 3 | 786 | 1,039 | 2,376 |
CSS | 3 | 8 | 30 | 717 |
Markdown | 2 | 35 | 0 | 58 |
XML | 1 | 0 | 1 | 13 |
JavaScript | 2 | 1 | 1 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 27.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 169 | |
▷ Static methods | 2 | 1.18% |
▷ Public methods | 164 | 97.04% |
▷ Protected methods | 4 | 2.37% |
▷ Private methods | 1 | 0.59% |
Functions | 71 | |
▷ Named functions | 60 | 84.51% |
▷ Anonymous functions | 11 | 15.49% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/discussion-board-banner-ad.png | 32.51KB | 12.49KB | ▼ 61.58% |
assets/images/singularity-banner-ad.png | 161.84KB | 66.44KB | ▼ 58.95% |