84% ziteboard-online-whiteboard

Code Review | Ziteboard Online Whiteboard

WordPress plugin Ziteboard Online Whiteboard scored84%from 54 tests.

About plugin

  • Plugin page: ziteboard-online-...
  • Plugin version: 2.9.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2016
  • Latest release: Oct 21, 2022
  • Number of updates: 35
  • Update frequency: every 64.3 days
  • Top authors: ziteboard (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /9,024 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼3.20ms] Passed 4 tests

A check of server-side resources used by Ziteboard Online Whiteboard
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0031.87 ▼7.43
Dashboard /wp-admin3.31 ▲0.0043.55 ▼4.17
Posts /wp-admin/edit.php3.36 ▲0.0045.53 ▲0.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.72 ▼1.67
Media Library /wp-admin/upload.php3.23 ▲0.0037.77 ▲4.42

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Ziteboard Online Whiteboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.59 ▼0.791.78 ▲0.0238.17 ▼1.98
Dashboard /wp-admin2,206 ▲185.86 ▲0.03111.72 ▲11.7838.55 ▼4.15
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0639.71 ▲4.0334.36 ▲0.29
Add New Post /wp-admin/post-new.php1,533 ▼923.22 ▲4.95650.28 ▲46.1167.50 ▲12.19
Media Library /wp-admin/upload.php1,382 ▼94.22 ▼0.0199.79 ▼0.7642.35 ▼0.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ziteboard-online-whiteboard/ziteboard-online-whiteboard.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

ziteboard-online-whiteboard/ziteboard-online-whiteboard.php Passed 13 tests

The entry point to "Ziteboard Online Whiteboard" version 2.9.7 is a PHP file that has certain tags in its header comment area
130 characters long description:
Embed an infinite, zoomable whiteboard from Ziteboard (https://ziteboard.com) - an online whiteboard with real-time collaboration.

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
Success! There were no dangerous files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151431

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin