67% mangboard

Code Review | Mang Board WP

WordPress plugin Mang Board WP scored67%from 54 tests.

About plugin

  • Plugin page: mangboard
  • Plugin version: 1.7.7
  • PHP compatiblity: 5.5.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 26, 2015
  • Latest release: Nov 1, 2023
  • Number of updates: 175
  • Update frequency: every 16.9 days
  • Top authors: Kitae Park (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

10,000+ active /88,235 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.20MB] [CPU: ▲19.58ms] 75% from 4 tests

Analyzing server-side resources used by Mang Board WP
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 2,935.36ms on /wp-admin/admin.php?page=mbw_dashboard)
PageMemory (MB)CPU Time (ms)
Home /5.64 ▲2.1871.44 ▲31.10
Dashboard /wp-admin5.52 ▲2.1766.54 ▲5.44
Posts /wp-admin/edit.php5.57 ▲2.2169.05 ▲21.18
Add New Post /wp-admin/post-new.php8.12 ▲2.23118.94 ▲24.90
Media Library /wp-admin/upload.php5.44 ▲2.2159.31 ▲26.78
Board Setting /wp-admin/admin.php?page=mbw_board_options6.0961.95
Logs /wp-admin/admin.php?page=mbw_logs6.0161.76
Users /wp-admin/admin.php?page=mbw_users6.0763.14
STORE /wp-admin/admin.php?page=mbw_store6.352,895.94
Dashboard /wp-admin/admin.php?page=mbw_dashboard6.772,935.36
Referers /wp-admin/admin.php?page=mbw_referers6.0160.40
Files /wp-admin/admin.php?page=mbw_files6.0660.92
Option Setting /wp-admin/admin.php?page=mbw_options6.1172.00
Statistics /wp-admin/admin.php?page=mbw_analytics6.0271.51

Server storage [IO: ▲6.36MB] [DB: ▲0.05MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 519 new files
Database: 11 new tables, 9 new options
New tables
mb_meta
mb_logs
mb_access_ip
mb_options
mb_users
mb_cookies
mb_referers
mb_files
mb_h_editors
mb_boards
...
New WordPress options
db_upgraded
widget_mbw_latest_mb_basic
widget_recent-comments
can_compress_scripts
mb_admin_check_data
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
mb_security_mode

Browser metrics Passed 4 tests

Mang Board WP: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,188 ▲44214.20 ▼0.0715.95 ▲14.4644.12 ▲1.69
Dashboard /wp-admin2,344 ▲1675.13 ▼0.5493.34 ▲5.1169.32 ▲29.66
Posts /wp-admin/edit.php2,252 ▲1522.44 ▲0.5038.22 ▲2.1332.38 ▼1.94
Add New Post /wp-admin/post-new.php1,638 ▲11023.04 ▲0.15588.19 ▼52.6332.15 ▼15.16
Media Library /wp-admin/upload.php1,552 ▲1494.80 ▲0.5999.32 ▼0.6766.70 ▲18.59
Board Setting /wp-admin/admin.php?page=mbw_board_options1,1032.1840.5528.96
Logs /wp-admin/admin.php?page=mbw_logs1,2292.2839.4834.94
Users /wp-admin/admin.php?page=mbw_users1,2892.3832.7327.23
STORE /wp-admin/admin.php?page=mbw_store6,5532.1529.30146.55
Dashboard /wp-admin/admin.php?page=mbw_dashboard1,3702.3229.1346.51
Referers /wp-admin/admin.php?page=mbw_referers1,1242.2430.1430.70
Files /wp-admin/admin.php?page=mbw_files1,1312.2436.2124.28
Option Setting /wp-admin/admin.php?page=mbw_options2,0103.6446.6163.75
Statistics /wp-admin/admin.php?page=mbw_analytics1,1852.2328.4131.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/mangboard/uninstall.php+15
    Constant MBW_PLUGIN_PATH already defined
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_mbw_latest_mb_basic
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mangboard/plugins/editors/smart/smart_editor2_inputarea_ie8.php
    • > /wp-content/plugins/mangboard/plugins/editors/smart/SmartEditor2noframe.php
    • > /wp-content/plugins/mangboard/plugins/editors/smart/sample/photo_uploader/callback.php
    • > /wp-content/plugins/mangboard/plugins/kcaptcha/util/font_preparer.php
    • > /wp-content/plugins/mangboard/plugins/kcaptcha/kcaptcha_image.php
    • > /wp-content/plugins/mangboard/plugins/store/store_page.php
  • 134× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      require(): Failed opening required 'MBW_PLUGIN_PATHincludes/mb-version.php' (include_path='.:/usr/share/php') in wp-content/plugins/mangboard/includes/mb-settings.php on line 33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mbw_get_param() in wp-content/plugins/mangboard/plugins/editors/smart/SmartEditor2Skin_ja_JP.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/mangboard/includes/mb-options.php:2
    • > PHP Warning
      Use of undefined constant MBW_PLUGIN_URL - assumed 'MBW_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mangboard/plugins/editors/smart/SmartEditor2Skin_ja_JP.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_Exception' not found in wp-content/plugins/mangboard/plugins/htmlpurifier/standalone/HTMLPurifier/ConfigSchema/Exception.php:6
    • > PHP Warning
      Use of undefined constant MBW_PLUGIN_URL - assumed 'MBW_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mangboard/plugins/editors/smart/SmartEditor2Skin.php on line 15
    • > PHP Warning
      Use of undefined constant MBW_PLUGIN_URL - assumed 'MBW_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mangboard/plugins/editors/smart/SmartEditor2Skin_en_US.php on line 15
    • > PHP Warning
      Use of undefined constant MBW_PLUGIN_URL - assumed 'MBW_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mangboard/plugins/editors/smart/SmartEditor2Skin_en_US.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mbw_json_decode() in wp-content/plugins/mangboard/skins/bbs_notice_m1/view.php:2
    • > PHP Warning
      Use of undefined constant MBW_PLUGIN_URL - assumed 'MBW_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mangboard/plugins/editors/smart/SmartEditor2Skin.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Mang Board > Board), #2 (Mang Board > Gallery), #3 (Mang Board > Calendar), #4 (Mang Board > Webzine), #5 (Mang Board > Frequently Asked Questions), #6 (Mang Board > Form)
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

mangboard/mangboard.php Passed 13 tests

The primary PHP file in "Mang Board WP" version 1.7.7 is used by WordPress to initiate all plugin functionality
99 characters long description:
MangBoard WP는 Wordpress에서 게시판을 생성/관리 할 수 있는 기능을 제공합니다

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected71,888 lines of code in 201 files:
LanguageFilesBlank linesComment linesLines of code
PHP1336,59510,88842,740
JavaScript376,4859,98423,700
CSS302153165,447
INI1111

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 232)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity14.94
▷ Minimum class complexity1.00
▷ Maximum class complexity539.00
Average method complexity4.91
▷ Minimum method complexity1.00
▷ Maximum method complexity232.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes242
▷ Abstract classes156.20%
▷ Concrete classes22793.80%
▷ Final classes00.00%
Methods879
▷ Static methods455.12%
▷ Public methods71080.77%
▷ Protected methods869.78%
▷ Private methods839.44%
Functions339
▷ Named functions339100.00%
▷ Anonymous functions00.00%
Constants86
▷ Global constants2832.56%
▷ Class constants5867.44%
▷ Public constants58100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
42 PNG files occupy 0.50MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugins/editor_composer/img/icon_arrow_down.png2.91KB0.28KB▼ 90.44%
plugins/editors/smart/sample/photo_uploader/img/bg_drag_image.png1.20KB0.99KB▼ 17.77%
plugins/editor_composer/img/icon_editor_video.png1.53KB0.84KB▼ 45.22%
plugins/editors/smart/sample/photo_uploader/img/btn_confirm2.png0.54KB0.50KB▼ 7.23%
plugins/editors/smart/sample/photo_uploader/img/btn_cancel.png0.70KB0.66KB▼ 5.57%