78% digital-board

Code Review | Digital Board

WordPress plugin Digital Board scored78%from 54 tests.

About plugin

  • Plugin page: digital-board
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: May 1, 2020
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: roidayan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.45MB] [CPU: ▲4.47ms] Passed 4 tests

This is a short check of server-side resources used by Digital Board
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4549.69 ▲4.99
Dashboard /wp-admin3.80 ▲0.4963.08 ▲8.90
Posts /wp-admin/edit.php3.85 ▲0.4960.32 ▲5.98
Add New Post /wp-admin/post-new.php6.30 ▲0.41106.15 ▲7.80
Media Library /wp-admin/upload.php3.70 ▲0.4739.98 ▼0.91
New Soul /wp-admin/post-new.php?post_type=dboard_soul3.8258.12
Digital Board /wp-admin/options-general.php?page=digital_board_settings3.80293.16
Souls /wp-admin/edit.php?post_type=dboard_soul3.7748.96
New Message /wp-admin/post-new.php?post_type=dboard_msg3.8355.22
Screens /wp-admin/edit.php?post_type=dboard_screen3.7746.03
New Screen /wp-admin/post-new.php?post_type=dboard_screen3.7952.80
Messages /wp-admin/edit.php?post_type=dboard_msg3.7744.40

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options
dboard_soul
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
dboard_basic
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Digital Board
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,037 ▲27614.73 ▲0.451.92 ▼0.0443.35 ▼3.46
Dashboard /wp-admin2,431 ▲2576.44 ▲0.84127.23 ▲28.0944.23 ▼3.27
Posts /wp-admin/edit.php2,365 ▲2683.60 ▲1.6256.82 ▲17.2134.74 ▼5.05
Add New Post /wp-admin/post-new.php1,611 ▲8523.20 ▼0.47642.98 ▼65.8336.05 ▼22.58
Media Library /wp-admin/upload.php1,502 ▲994.35 ▲0.1288.54 ▼24.3847.32 ▼2.66
New Soul /wp-admin/post-new.php?post_type=dboard_soul2,2697.77175.2166.32
Digital Board /wp-admin/options-general.php?page=digital_board_settings1,2403.5649.1528.79
Souls /wp-admin/edit.php?post_type=dboard_soul1,3323.5046.6127.22
New Message /wp-admin/post-new.php?post_type=dboard_msg2,2657.74172.1457.36
Screens /wp-admin/edit.php?post_type=dboard_screen1,3433.5245.7327.92
New Screen /wp-admin/post-new.php?post_type=dboard_screen1,8113.8471.8532.98
Messages /wp-admin/edit.php?post_type=dboard_msg1,3383.4552.8729.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • dboard_basic
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • dboard_soul
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/digital-board/lib/hebcal-test.php
    • > /wp-content/plugins/digital-board/dboard.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-board/mb-memorial-day.php:185
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-board/pagetemplater.php:167
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-board/mb-msgs.php:79
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/digital-board/checklist-pages.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/digital-board/shortcodes.php:110
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-board/templates/dboard-template-2.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digital-board/templates/dboard-template-1.php:21

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

digital-board/dboard.php 92% from 13 tests

The primary PHP file in "Digital Board" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("digital-board.php" instead of "dboard.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
Everything looks great! No dangerous files found in this plugin3,130 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP194683922,211
CSS53436579
JavaScript37282290
PO File1191844
Markdown1506

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity14.69
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods139
▷ Static methods5539.57%
▷ Public methods13899.28%
▷ Protected methods00.00%
▷ Private methods10.72%
Functions30
▷ Named functions2996.67%
▷ Anonymous functions13.33%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin