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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 30.14 ▼19.09 |
Dashboard /wp-admin | 3.08 ▲0.02 | 31.56 ▼16.87 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 35.48 ▲3.26 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 74.18 ▼700.97 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,297 ▲696 | 17.87 ▲2.21 | 45.16 ▲39.73 | 95.17 ▲16.29 |
Dashboard /wp-admin | 2,957 ▲61 | 6.14 ▲0.03 | 119.49 ▼15.08 | 195.28 ▲18.94 |
Posts /wp-admin/edit.php | 2,975 ▲238 | 3.38 ▲0.14 | 65.44 ▲0.50 | 143.17 ▲0.42 |
Add New Post /wp-admin/post-new.php | 4,089 ▲383 | 18.23 ▼0.30 | 463.13 ▲19.51 | 241.13 ▲78.47 |
Media Library /wp-admin/upload.php | 1,776 ▲24 | 5.49 ▼0.00 | 137.73 ▲1.46 | 186.36 ▲1.43 |
CF Whiteboard /wp-admin/cf-whiteboard.php | 26 | 0.94 | 0.03 | 19.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 225 | 349 | 13,351 |
PHP | 1 | 589 | 978 | 3,537 |
JavaScript | 11 | 595 | 453 | 1,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 code | 0.40 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 3 | 100.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 64 | |
▷ Named functions | 64 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 17 | 100.00% |
▷ Public constants | 17 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/locked.png | 3.16KB | 0.54KB | ▼ 82.97% |
images/chevron-sprite.png | 6.32KB | 0.17KB | ▼ 97.25% |
images/cfwhiteboard.png | 4.00KB | 0.93KB | ▼ 76.80% |
bootstrap/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
images/profile-link.png | 2.87KB | 0.24KB | ▼ 91.76% |