Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼290.38ms] Passed 4 tests
Server-side resources used by Shared Whiteboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.50 | 60.89 ▲42.23 |
Dashboard /wp-admin | 3.48 ▲0.08 | 94.33 ▲4.90 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 42.00 ▼2.47 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.01 | 96.49 ▼1,157.79 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 25.71 ▼6.14 |
Shared Whiteboard /wp-admin/options-general.php?page=AWWApp | 3.32 | 29.84 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options |
---|
AWWApp_options |
Browser metrics Passed 4 tests
A check of browser resources used by Shared Whiteboard
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 683 ▼3,071 | 5.36 ▼10.63 | 10.16 ▲4.25 | 2.80 ▲0.14 |
Dashboard /wp-admin | 2,883 ▲22 | 6.12 ▼0.05 | 119.03 ▼14.68 | 155.33 ▼12.90 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▼0.00 | 63.12 ▲0.67 | 181.08 ▲3.12 |
Add New Post /wp-admin/post-new.php | 1,972 ▲261 | 16.88 ▼4.39 | 425.18 ▼21.61 | 160.11 ▲2.99 |
Media Library /wp-admin/upload.php | 1,694 ▼4 | 5.55 ▲0.03 | 165.41 ▲28.22 | 187.31 ▼1.10 |
Shared Whiteboard /wp-admin/options-general.php?page=AWWApp | 1,428 | 2.39 | 53.07 | 133.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=AWWApp
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=AWWApp
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=AWWApp
- > Notice in wp-content/plugins/shared-whiteboard/awwapp.php+362
Undefined index: singleBoardId
SRP 50% 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shared-whiteboard/admin/mce_dialog.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/shared-whiteboard/admin/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/shared-whiteboard/awwapp.php:32
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shared-whiteboard/admin/options_table.php:3
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: widget, canvas, posts, post, board...
shared-whiteboard/awwapp.php 77% from 13 tests
The main PHP file in "Shared Whiteboard" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("shared-whiteboard.php" instead of "awwapp.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected620 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 77 | 50 | 339 |
JavaScript | 3 | 32 | 11 | 154 |
PO File | 1 | 40 | 40 | 104 |
CSS | 2 | 4 | 0 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon-32.png | 1.18KB | 0.85KB | ▼ 27.94% |
admin/images/icon-20.png | 0.88KB | 0.65KB | ▼ 25.78% |