10% neoforum

Code Review | Neoforum

WordPress plugin Neoforum scored 10% from 54 tests.

About plugin

  • Plugin page: neoforum
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.0
  • WordPress version: 5.8.1
  • First release: May 15, 2019
  • Latest release: May 22, 2019
  • Number of updates: 8
  • Update frequency: every 1.6 days
  • Top authors: saeros1984 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 698 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲1.3145.75 ▲19.07
Dashboard /wp-admin4.05 ▲1.0037.60 ▼20.36
Posts /wp-admin/edit.php4.19 ▲1.0842.60 ▼10.78
Add New Post /wp-admin/post-new.php6.18 ▲0.7485.09 ▼615.99
Media Library /wp-admin/upload.php4.08 ▲1.0837.15 ▼0.96
NeoForum /wp-admin/admin.php?page=neoforum_admin4.0435.64
Trash /wp-admin/admin.php?page=neoforum_trash4.0434.99
Forums /wp-admin/admin.php?page=neoforum_forums4.0439.90
Users /wp-admin/admin.php?page=neoforum_moderation4.0435.75
Reports /wp-admin/admin.php?page=neoforum_reports4.0437.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,728 ▲15616.19 ▲0.679.65 ▼7.9647.03 ▼6.08
Dashboard /wp-admin3,013 ▲826.13 ▲0.24161.69 ▼16.48117.39 ▲1.96
Posts /wp-admin/edit.php2,788 ▲492.72 ▼0.0171.23 ▼5.8587.18 ▼3.51
Add New Post /wp-admin/post-new.php1,714 ▲13315.66 ▼4.66454.73 ▼27.92117.74 ▼3.04
Media Library /wp-admin/upload.php1,856 ▲495.02 ▲0.01178.38 ▲9.46130.00 ▲1.87
NeoForum /wp-admin/admin.php?page=neoforum_admin1,2282.2372.6480.85
Trash /wp-admin/admin.php?page=neoforum_trash1,2382.3371.0854.47
Forums /wp-admin/admin.php?page=neoforum_forums1,3822.2981.7372.52
Users /wp-admin/admin.php?page=neoforum_moderation1,1862.3360.6075.05
Reports /wp-admin/admin.php?page=neoforum_reports1,0662.0856.1469.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP25390905,241
CSS7206181,385
JavaScript1111341,246
SVG5421191,062
PO File2446585986

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 code0.39
Average class complexity36.50
▷ Minimum class complexity9.00
▷ Maximum class complexity64.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods41
▷ Static methods41100.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions151
▷ Named functions14092.72%
▷ Anonymous functions117.28%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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