10% cf-whiteboard

Code Review | CF Whiteboard

WordPress plugin CF Whiteboard scored 10% from 54 tests.

About plugin

  • Plugin page: cf-whiteboard
  • Plugin version: 2.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 5.8.1
  • First release: Jan 6, 2012
  • Latest release: Mar 2, 2016
  • Number of updates: 135
  • Update frequency: every 15.3 days
  • Top authors: collindo (97.78%)mbrandt2009 (2.96%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 10,348 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/cf-whiteboard/cf-whiteboard.php+35
    Undefined index: athletes_page_id

Server metrics [RAM: ▲0.03MB] [CPU: ▼184.11ms] Passed 4 tests

An overview of server-side resources used by CF Whiteboard
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1630.14 ▼19.09
Dashboard /wp-admin3.08 ▲0.0231.56 ▼16.87
Posts /wp-admin/edit.php3.18 ▲0.0735.48 ▲3.26
Add New Post /wp-admin/post-new.php5.46 ▲0.0274.18 ▼700.97
Media Library /wp-admin/upload.php3.03 ▲0.0223.79 ▲0.49

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 1 new option
New WordPress options
cfwhiteboard_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CF Whiteboard
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,297 ▲69617.87 ▲2.2145.16 ▲39.7395.17 ▲16.29
Dashboard /wp-admin2,957 ▲616.14 ▲0.03119.49 ▼15.08195.28 ▲18.94
Posts /wp-admin/edit.php2,975 ▲2383.38 ▲0.1465.44 ▲0.50143.17 ▲0.42
Add New Post /wp-admin/post-new.php4,089 ▲38318.23 ▼0.30463.13 ▲19.51241.13 ▲78.47
Media Library /wp-admin/upload.php1,776 ▲245.49 ▼0.00137.73 ▲1.46186.36 ▲1.43
CF Whiteboard /wp-admin/cf-whiteboard.php260.940.0319.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • cfwhiteboard_options

Smoke tests 50% 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cf-whiteboard/cf-whiteboard.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/cf-whiteboard.php
    • > Network (severe)
    wp-admin/cf-whiteboard.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
Please take inspiration from this readme.txt

cf-whiteboard/cf-whiteboard.php Passed 13 tests

This is the main PHP file of "CF Whiteboard" version 2.5.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
117 characters long description:
Connects CF Whiteboard to your blog. Please contact help@cfwhiteboard.com for more information or for a product demo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin18,574 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS422534913,351
PHP15899783,537
JavaScript115954531,686

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes3100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions64
▷ Named functions64100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants00.00%
▷ Class constants17100.00%
▷ Public constants17100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/locked.png3.16KB0.54KB▼ 82.97%
images/chevron-sprite.png6.32KB0.17KB▼ 97.25%
images/cfwhiteboard.png4.00KB0.93KB▼ 76.80%
bootstrap/img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%
images/profile-link.png2.87KB0.24KB▼ 91.76%