Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'neoforum_rewrite_activation' not found or invalid function name
Server metrics [RAM: ▲0.98MB] [CPU: ▼162.02ms] Passed 4 tests
An overview of server-side resources used by Neoforum
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲1.31 | 45.75 ▲19.07 |
Dashboard /wp-admin | 4.05 ▲1.00 | 37.60 ▼20.36 |
Posts /wp-admin/edit.php | 4.19 ▲1.08 | 42.60 ▼10.78 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.74 | 85.09 ▼615.99 |
Media Library /wp-admin/upload.php | 4.08 ▲1.08 | 37.15 ▼0.96 |
NeoForum /wp-admin/admin.php?page=neoforum_admin | 4.04 | 35.64 |
Trash /wp-admin/admin.php?page=neoforum_trash | 4.04 | 34.99 |
Forums /wp-admin/admin.php?page=neoforum_forums | 4.04 | 39.90 |
Users /wp-admin/admin.php?page=neoforum_moderation | 4.04 | 35.75 |
Reports /wp-admin/admin.php?page=neoforum_reports | 4.04 | 37.92 |
Server storage [IO: ▲0.64MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 111 new files
Database: 7 new tables, 13 new options
New tables |
---|
wp_neoforum_topics |
wp_neoforum_posts |
wp_neoforum_attachments |
wp_neoforum_forums |
wp_neoforum_reports |
wp_neoforum_users |
wp_neoforum_subscribes |
New WordPress options |
---|
neoforum_old_forum_page |
neoforum_topics_need_approving |
neoforum_max_folder_size |
neoforum_can_upload |
neoforum_max_file_size |
neoforum_forum_url |
neoforum_topics_need_solving |
neoforum_topics_per_page |
neoforum_theme |
neoforum_guests_can_topics |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Neoforum
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,728 ▲156 | 16.19 ▲0.67 | 9.65 ▼7.96 | 47.03 ▼6.08 |
Dashboard /wp-admin | 3,013 ▲82 | 6.13 ▲0.24 | 161.69 ▼16.48 | 117.39 ▲1.96 |
Posts /wp-admin/edit.php | 2,788 ▲49 | 2.72 ▼0.01 | 71.23 ▼5.85 | 87.18 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,714 ▲133 | 15.66 ▼4.66 | 454.73 ▼27.92 | 117.74 ▼3.04 |
Media Library /wp-admin/upload.php | 1,856 ▲49 | 5.02 ▲0.01 | 178.38 ▲9.46 | 130.00 ▲1.87 |
NeoForum /wp-admin/admin.php?page=neoforum_admin | 1,228 | 2.23 | 72.64 | 80.85 |
Trash /wp-admin/admin.php?page=neoforum_trash | 1,238 | 2.33 | 71.08 | 54.47 |
Forums /wp-admin/admin.php?page=neoforum_forums | 1,382 | 2.29 | 81.73 | 72.52 |
Users /wp-admin/admin.php?page=neoforum_moderation | 1,186 | 2.33 | 60.60 | 75.05 |
Reports /wp-admin/admin.php?page=neoforum_reports | 1,066 | 2.08 | 56.14 | 69.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'neoforum_deactivate' not found or invalid function name
- The uninstall procedure failed, leaving 7 tables in the database
- wp_neoforum_reports
- wp_neoforum_users
- wp_neoforum_subscribes
- wp_neoforum_topics
- wp_neoforum_forums
- wp_neoforum_attachments
- wp_neoforum_posts
- This plugin did not uninstall successfully, leaving 13 options in the database
- neoforum_topics_need_approving
- neoforum_guests_can_topics
- neoforum_allow_links
- neoforum_theme
- neoforum_forum_url
- neoforum_topics_per_page
- neoforum_posts_per_page
- neoforum_old_forum_page
- neoforum_max_file_size
- neoforum_max_folder_size
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=neoforum_reports
- > Notice in wp-content/plugins/neoforum/neoforum.php+90
Undefined index: neoforum_admin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=neoforum_reports
- > Notice in wp-content/plugins/neoforum/neoforum.php+50
Undefined index: action
- > GET request to /wp-admin/admin.php?page=neoforum_reports
- > Notice in wp-content/plugins/neoforum/nf-admin/functions.php+799
Undefined variable: pagination
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/neoforum/nf-themes/classic/description.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function neoforum_is_user_moder() in wp-content/plugins/neoforum/nf-themes/classic/topic.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/neoforum/nf-themes/classic/post.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neoforum/nf-includes/rewrites.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/neoforum/neoforum.php:40
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/neoforum/nf-themes/classic/post.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'neoforum_themes' not found in wp-content/plugins/neoforum/nf-themes/classic/single-forum.php:2
- > PHP Notice
Undefined variable: post in wp-content/plugins/neoforum/nf-themes/classic/post.php on line 4
- > PHP Notice
Undefined variable: post in wp-content/plugins/neoforum/nf-themes/classic/post.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'neoforum_themes' not found in wp-content/plugins/neoforum/nf-themes/classic/post.php:7
- > PHP Warning
Use of undefined constant neoforum_URL - assumed 'neoforum_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/neoforum/nf-themes/classic/description.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: forum plugin, forum, community, wordpress forum plugin, discussion...
neoforum/neoforum.php Passed 13 tests
"Neoforum" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
Forum engine for Wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin9,920 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 390 | 90 | 5,241 |
CSS | 7 | 206 | 18 | 1,385 |
JavaScript | 11 | 113 | 4 | 1,246 |
SVG | 54 | 21 | 19 | 1,062 |
PO File | 2 | 446 | 585 | 986 |
PHP code Passed 2 tests
A brief analysis 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.39 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 41 | 100.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 151 | |
▷ Named functions | 140 | 92.72% |
▷ Anonymous functions | 11 | 7.28% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin