63% wodtogether-whiteboards

Code Review | WODTogether Whiteboards

WordPress plugin WODTogether Whiteboards scored63%from 54 tests.

About plugin

  • Plugin page: wodtogether-white...
  • Plugin version: 3.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 28, 2012
  • Latest release: Feb 12, 2018
  • Number of updates: 57
  • Update frequency: every 37.1 days
  • Top authors: bholub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,214 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.90MB] [CPU: ▼58.66ms] Passed 4 tests

Server-side resources used by WODTogether Whiteboards
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.75 ▼36.20
Dashboard /wp-admin2.11 ▼1.196.87 ▼47.79
Posts /wp-admin/edit.php2.11 ▼1.257.23 ▼47.84
Add New Post /wp-admin/post-new.php2.11 ▼3.789.63 ▼102.79
Media Library /wp-admin/upload.php2.11 ▼1.128.15 ▼30.78
WODTogether /wp-admin/options-general.php?page=plugin2.116.03

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: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WODTogether Whiteboards
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13013.84 ▼0.5710.06 ▲8.3037.83 ▼8.96
Dashboard /wp-admin2,261 ▲845.61 ▲0.0497.28 ▲4.8041.45 ▼0.36
Posts /wp-admin/edit.php2,180 ▲802.35 ▲0.3248.54 ▲7.0837.20 ▼1.60
Add New Post /wp-admin/post-new.php1,550 ▲2223.07 ▲0.08652.20 ▼64.2960.94 ▲7.78
Media Library /wp-admin/upload.php1,494 ▲974.43 ▲0.23108.48 ▲6.5843.69 ▼2.28
WODTogether /wp-admin/options-general.php?page=plugin1,0102.0736.1731.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wodtogether-whiteboards handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wodtogether-whiteboards handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wodtogether-whiteboards handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wodtogether-whiteboards handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > Notice in wp-content/plugins/wodtogether-whiteboards/wodtogether-whiteboards.php+91
    Trying to access array offset on value of type bool

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wodtogether-whiteboards/wodtogether-whiteboards.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wodtogether-whiteboards/wod.php:2

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: post, crossfit, embed

wodtogether-whiteboards/wodtogether-whiteboards.php Passed 13 tests

"WODTogether Whiteboards" version 3.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
Automatic embedding of WODTogether whiteboards into blog posts. Other widgets too

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24619161
JavaScript12212
CSS1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin