68% board-document-manager-from-chuhpl

Code Review | Board Document Manager from CHUHPL

WordPress plugin Board Document Manager from CHUHPL scored68%from 54 tests.

About plugin

  • Plugin page: board-document-ma...
  • Plugin version: 1.9.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 21, 2016
  • Latest release: Apr 24, 2023
  • Number of updates: 28
  • Update frequency: every 82.4 days
  • Top authors: chuhpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,306 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.09ms] Passed 4 tests

This is a short check of server-side resources used by Board Document Manager from CHUHPL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.86 ▼2.99
Dashboard /wp-admin3.32 ▼0.0247.56 ▼13.98
Posts /wp-admin/edit.php3.44 ▲0.0847.53 ▼4.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.82 ▼7.26
Media Library /wp-admin/upload.php3.25 ▲0.0237.98 ▲2.14
View & Delete /wp-admin/admin.php?page=bdm_mainShow3.1930.58
Recent Log /wp-admin/admin.php?page=bdm_mainRecent3.2731.63
Add Doc /wp-admin/admin.php?page=bdm_main3.2635.44

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables
wp_boardDocumentManager
New WordPress options
widget_theysaidso_widget
boardDocumentManager_db_version
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Board Document Manager from CHUHPL
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.33 ▼0.021.61 ▼0.1138.40 ▼3.35
Dashboard /wp-admin2,229 ▲525.56 ▼0.1188.61 ▼9.7837.42 ▼6.81
Posts /wp-admin/edit.php2,128 ▲282.03 ▼0.0035.09 ▼3.3133.93 ▼3.78
Add New Post /wp-admin/post-new.php1,551 ▲2523.04 ▼0.52602.73 ▼38.0460.88 ▼5.12
Media Library /wp-admin/upload.php1,425 ▲224.21 ▲0.0599.53 ▼6.6743.35 ▲0.29
View & Delete /wp-admin/admin.php?page=bdm_mainShow8542.0025.2025.56
Recent Log /wp-admin/admin.php?page=bdm_mainRecent8462.0025.2227.34
Add Doc /wp-admin/admin.php?page=bdm_main1,1262.0125.7234.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/board-document-manager-from-chuhpl/board_document_manager_from_CHUHPL.php+124
    rmdir(wp-content/uploads/board-document-manager-from-chuhpl): Directory not empty
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bdm_mainShow
    • > Notice in wp-content/plugins/board-document-manager-from-chuhpl/templates/form_list.php+8
    Undefined index: type
    • > GET request to /wp-admin/admin.php?page=bdm_mainShow
    • > Notice in wp-content/plugins/board-document-manager-from-chuhpl/bdmView.php+112
    Undefined index: action

SRP 50% 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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'bdmMain' not found in wp-content/plugins/board-document-manager-from-chuhpl/bdmAdd.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'bdmMain' not found in wp-content/plugins/board-document-manager-from-chuhpl/bdmView.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/board-document-manager-from-chuhpl/board_document_manager_from_CHUHPL.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/board-document-manager-from-chuhpl/templates/show_shortcode.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Requires at least: Version format is invalid
The official readme.txt might help

board-document-manager-from-chuhpl/board_document_manager_from_CHUHPL.php 92% from 13 tests

The main PHP file in "Board Document Manager from CHUHPL" ver. 1.9.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("board-document-manager-from-chuhpl.php" instead of "board_document_manager_from_CHUHPL.php")

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 plugin959 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP1117597909
CSS11250

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.75
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods2187.50%
▷ Protected methods312.50%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin