62% pondol-bbs

Code Review | Pondol BBS

WordPress plugin Pondol BBS scored62%from 54 tests.

About plugin

  • Plugin page: pondol-bbs
  • Plugin version: 1.1.8.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Jun 17, 2014
  • Latest release: Dec 29, 2014
  • Number of updates: 25
  • Update frequency: every 7.8 days
  • Top authors: pondol (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,578 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.48MB] [CPU: ▼14.19ms] Passed 4 tests

This is a short check of server-side resources used by Pondol BBS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.31 ▼0.1639.04 ▼2.96
Dashboard /wp-admin3.68 ▲0.3356.77 ▼7.06
Posts /wp-admin/edit.php3.71 ▲0.3559.94 ▲9.81
Add New Post /wp-admin/post-new.php3.47 ▼2.4245.10 ▼56.25
Media Library /wp-admin/upload.php3.54 ▲0.3146.04 ▲9.52
Add New /wp-admin/post-new.php?post_type=bbs3.4644.03
Pondol BBS /wp-admin/edit.php?post_type=bbs3.5749.51
BBS Category /wp-admin/edit-tags.php?taxonomy=board&post_type=bbs3.5143.42

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 73 new files
Database: 1 new table, 7 new options
New tables
wp_pondol_bbs
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_pondolbbs_widget
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pondol BBS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11414.40 ▲0.131.92 ▲0.3632.98 ▼6.85
Dashboard /wp-admin2,247 ▲675.59 ▲0.0793.50 ▼0.9851.47 ▲5.90
Posts /wp-admin/edit.php2,155 ▲522.03 ▲0.0837.01 ▼3.9143.43 ▲7.63
Add New Post /wp-admin/post-new.php1,420 ▼10821.46 ▼1.63555.81 ▼135.8984.78 ▲34.06
Media Library /wp-admin/upload.php1,452 ▲524.21 ▼0.04103.26 ▼8.7847.47 ▲0.22
Add New /wp-admin/post-new.php?post_type=bbs2,3107.63171.0880.36
Pondol BBS /wp-admin/edit.php?post_type=bbs1,1191.9532.5740.66
BBS Category /wp-admin/edit-tags.php?taxonomy=board&post_type=bbs1,6982.1734.8446.48

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
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_pondol_bbs
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_pondolbbs_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=bbs
    • > Notice in wp-content/plugins/pondol-bbs/includes/class.pondol.bbs.php+270
    Undefined index: post_type
    • > GET request to /wp-admin/edit-tags.php?taxonomy=board&post_type=bbs
    • > Notice in wp-content/plugins/pondol-bbs/includes/class.pondol.bbs.admin.php+30
    Trying to get property 'term_id' of non-object
    • > GET request to /wp-admin/edit-tags.php?taxonomy=board&post_type=bbs
    • > Notice in wp-content/plugins/pondol-bbs/pages/admin.taxonomy.edit.php+133
    Undefined index: comment
    • > GET request to /wp-admin/edit-tags.php?taxonomy=board&post_type=bbs
    • > Notice in wp-content/plugins/pondol-bbs/pages/admin.taxonomy.edit.php+167
    Undefined index: uploading_files_ext

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
Please take a closer look at the following
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pondol-bbs/pages/admin.gallery.images.php
    • > /wp-content/plugins/pondol-bbs/templates/sample/form_auth.php
    • > /wp-content/plugins/pondol-bbs/templates/notice/form_auth.php
    • > /wp-content/plugins/pondol-bbs/templates/gallery/form_auth.php
    • > /wp-content/plugins/pondol-bbs/templates/newtype/form_auth.php
    • > /wp-content/plugins/pondol-bbs/templates/default/form_auth.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected 'endfor' (T_ENDFOR), expecting end of file in wp-content/plugins/pondol-bbs/templates/sample/archive-write.php on line 87
    • > PHP Warning
      Use of undefined constant PONDOL_BBS_URL - assumed 'PONDOL_BBS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pondol-bbs/pages/admin.taxonomy.edit.php on line 14
    • > PHP Warning
      Use of undefined constant PONDOL_BBS_URL - assumed 'PONDOL_BBS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pondol-bbs/pages/admin.taxonomy.edit.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pondol-bbs/pages/admin.taxonomy.edit.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pondol-bbs/pondolbbs.php:28
    • > PHP Warning
      Use of undefined constant PONDOL_BBS_URL - assumed 'PONDOL_BBS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pondol-bbs/pages/admin.taxonomy.edit.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: board, notice, pondol, imagegallery, bbs

pondol-bbs/pondolbbs.php 92% from 13 tests

The main file in "Pondol BBS" v. 1.1.8.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pondol-bbs.php" instead of "pondolbbs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,033 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP274032692,439
CSS8347217
JavaScript53162205
PO File27214172

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.89
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods63
▷ Static methods00.00%
▷ Public methods6298.41%
▷ Protected methods00.00%
▷ Private methods11.59%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
16 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/newtype/preview/view.png2.94KB1.82KB▼ 38.01%
templates/notice/preview/list.png2.61KB1.75KB▼ 32.82%
templates/gallery/preview/list.png7.20KB3.32KB▼ 53.86%
templates/default/preview/list.png3.58KB2.35KB▼ 34.42%
templates/notice/preview/write.png1.33KB0.87KB▼ 34.73%