Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲12.03MB] [CPU: ▲76.87ms] 50% from 4 tests
This is a short check of server-side resources used by wpForo Forum
The following require your attention
- RAM: Try to keep total memory usage under 10MB (currently 15.77MB on /wp-admin/admin.php?page=wpforo-phrases)
- Extra RAM: The extra memory usage should kept under 5MB (currently 12.03MB on /wp-admin/admin.php?page=wpforo-phrases)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 15.02 ▲11.56 | 115.03 ▲73.17 |
Dashboard /wp-admin | 15.46 ▲12.16 | 137.18 ▲89.81 |
Posts /wp-admin/edit.php | 15.58 ▲12.22 | 138.13 ▲91.55 |
Add New Post /wp-admin/post-new.php | 18.07 ▲12.18 | 160.33 ▲61.02 |
Media Library /wp-admin/upload.php | 15.50 ▲12.27 | 116.71 ▲83.47 |
Accesses /wp-admin/admin.php?page=wpforo-accesses | 15.72 | 124.50 |
Forums /wp-admin/admin.php?page=wpforo-forums | 15.76 | 141.33 |
Moderation /wp-admin/admin.php?page=wpforo-moderations | 15.78 | 128.53 |
Usergroups /wp-admin/admin.php?page=wpforo-usergroups | 15.82 | 129.49 |
Boards /wp-admin/admin.php?page=wpforo-boards | 15.75 | 118.79 |
Settings /wp-admin/admin.php?page=wpforo-settings | 15.75 | 143.40 |
Members /wp-admin/admin.php?page=wpforo-members | 15.81 | 138.77 |
Themes /wp-admin/admin.php?page=wpforo-themes | 15.72 | 125.64 |
Addons /wp-admin/admin.php?page=wpforo-addons | 15.72 | 118.97 |
Phrases /wp-admin/admin.php?page=wpforo-phrases | 15.77 | 145.84 |
Server storage [IO: ▲20.35MB] [DB: ▲0.29MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 455 new files
Database: 19 new tables, 41 new options
New tables |
---|
wp_wpforo_bookmarks |
wp_wpforo_topics |
wp_wpforo_forums |
wp_wpforo_boards |
wp_wpforo_phrases |
wp_wpforo_posts |
wp_wpforo_subscribes |
wp_wpforo_profiles |
wp_wpforo_visits |
wp_wpforo_usergroups |
... |
New WordPress options |
---|
wpforo_posting |
wpforo_profiles |
wpforo_social |
wpforo_topics |
wpforo_buddypress |
wpforo_members |
wpforo_um |
widget_wpforo_recent_posts |
wpforo_addon_note_dismissed |
wpforo_version_db |
... |
Browser metrics Passed 4 tests
Checking browser requirements for wpForo Forum
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲245 | 14.69 ▼0.10 | 1.85 ▼0.18 | 41.44 ▼1.69 |
Dashboard /wp-admin | 2,348 ▲174 | 5.63 ▼0.09 | 93.31 ▼13.43 | 39.41 ▼5.62 |
Posts /wp-admin/edit.php | 2,251 ▲154 | 2.03 ▲0.08 | 42.74 ▲4.92 | 36.81 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,656 ▲130 | 22.09 ▼0.91 | 638.90 ▼12.40 | 42.93 ▼18.63 |
Media Library /wp-admin/upload.php | 1,545 ▲142 | 4.17 ▼0.07 | 97.89 ▼1.08 | 43.15 ▲1.34 |
Accesses /wp-admin/admin.php?page=wpforo-accesses | 1,136 | 2.39 | 35.87 | 48.36 |
Forums /wp-admin/admin.php?page=wpforo-forums | 1,380 | 3.88 | 74.52 | 62.28 |
Moderation /wp-admin/admin.php?page=wpforo-moderations | 1,391 | 2.40 | 34.59 | 30.76 |
Usergroups /wp-admin/admin.php?page=wpforo-usergroups | 1,675 | 2.39 | 32.67 | 49.69 |
Boards /wp-admin/admin.php?page=wpforo-boards | 1,093 | 2.41 | 30.06 | 27.44 |
Settings /wp-admin/admin.php?page=wpforo-settings | 2,005 | 2.41 | 34.26 | 33.53 |
Members /wp-admin/admin.php?page=wpforo-members | 1,675 | 2.40 | 33.70 | 35.35 |
Themes /wp-admin/admin.php?page=wpforo-themes | 1,213 | 2.36 | 29.70 | 30.37 |
Addons /wp-admin/admin.php?page=wpforo-addons | 2,453 | 3.02 | 52.06 | 87.83 |
Phrases /wp-admin/admin.php?page=wpforo-phrases | 1,679 | 2.39 | 33.98 | 37.79 |
Uninstaller [IO: ▲0.13MB] [DB: ▲0.29MB] 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
- The plugin did not uninstall successfully, leaving 19 tables in the database
- wp_wpforo_reactions
- wp_wpforo_posts
- wp_wpforo_subscribes
- wp_wpforo_follows
- wp_wpforo_postmeta
- wp_wpforo_boards
- wp_wpforo_activity
- wp_wpforo_usergroups
- wp_wpforo_profiles
- wp_wpforo_visits
- ...
- The uninstall procedure has failed, leaving 41 options in the database
- wpforo_seo
- wpforo_components
- wpforo_buddypress
- wpforo_recaptcha
- wpforo_pageid
- wpforo_um
- wpforo_version
- widget_wpforo_forums
- wpforo_logging
- wpforo_notifications
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpforo/admin/pages/tools.php
- > /wp-content/plugins/wpforo/admin/tools-tabs/cleanup.php
- > /wp-content/plugins/wpforo/languages/index.php
- 30× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpforo/admin/listtables/Boards.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpforo/admin/listtables/Moderations.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpforo/admin/listtables/Phrases.php on line 7
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpforo/autoload.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpforo/widgets/RecentTopics.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function WPF() in wp-content/plugins/wpforo/themes/classic/topic.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpforo/admin/listtables/Members.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpforo/admin/listtables/Moderations.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function WPF() in wp-content/plugins/wpforo/themes/2022/topic.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpforo/widgets/OnlineMembers.php:7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=wpforo-forums
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: menus is not defined" "ReferenceError: menus is not defined\n at Object.init (/wp-admin/js/nav-menu.min.js?ver=6.3.1:2:809)\n at HTMLDocument.\u003Canonymous> (/wp-admin/js/nav-menu.min.js?ver=6.3.1:2:25277)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=wpforo-forums
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught ReferenceError: menus is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Invalid version format
wpforo/wpforo.php Passed 13 tests
"wpForo Forum" version 2.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
125 characters long description:
WordPress Forum plugin. wpForo is a full-fledged forum solution for your community. Comes with multiple modern forum layouts.
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected186,059 lines of code in 254 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 32 | 54,445 | 61,278 | 117,374 |
PHP | 185 | 5,820 | 4,198 | 50,872 |
CSS | 18 | 861 | 676 | 10,923 |
JavaScript | 15 | 506 | 202 | 5,720 |
XML | 1 | 0 | 0 | 968 |
HTML | 2 | 22 | 0 | 101 |
XSLT | 1 | 0 | 0 | 101 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 137)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 106.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 557.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 137.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 54 | 100.00% |
▷ Final classes | 1 | 1.85% |
Methods | 1,304 | |
▷ Static methods | 5 | 0.38% |
▷ Public methods | 1,118 | 85.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 186 | 14.26% |
Functions | 700 | |
▷ Named functions | 441 | 63.00% |
▷ Anonymous functions | 259 | 37.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
98 PNG files occupy 2.90MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dashboard/cog.png | 0.22KB | 0.16KB | ▼ 26.43% |
assets/images/sn/msn.png | 0.66KB | 0.66KB | 0.00% |
assets/images/sn/twitter.png | 1.59KB | 0.60KB | ▼ 62.35% |
assets/images/sn/aim.png | 0.13KB | 0.14KB | 0.00% |
assets/images/sn/ok-m.png | 3.42KB | 1.22KB | ▼ 64.32% |