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.04MB] [CPU: ▼297.64ms] Passed 4 tests
A check of server-side resources used by Free Canvas
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 51.74 ▼2.00 |
Dashboard /wp-admin | 3.48 ▲0.07 | 33.76 ▼0.32 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 38.36 ▲1.30 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 94.59 ▼1,189.31 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 25.43 ▲1.08 |
Free Canvas /wp-admin/options-general.php?page=freecanvas | 3.33 | 22.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Free Canvas: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲36 | 15.94 ▲0.68 | 7.07 ▲1.05 | 2.95 ▲0.51 |
Dashboard /wp-admin | 2,897 ▲39 | 6.03 ▼0.19 | 116.43 ▼16.98 | 156.76 ▼6.01 |
Posts /wp-admin/edit.php | 2,696 ▲5 | 3.24 ▲0.01 | 65.89 ▲0.59 | 139.65 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,699 ▲38 | 21.13 ▲5.07 | 421.04 ▼8.34 | 157.52 ▲0.98 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.51 ▼0.02 | 149.15 ▼3.15 | 187.87 ▼0.84 |
Free Canvas /wp-admin/options-general.php?page=freecanvas | 1,413 | 2.49 | 54.21 | 124.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-canvas/lib/class-freecanvasadmin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-canvas/lib/class-freecanvasajax.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/free-canvas/lib/class-freecanvas.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/free-canvas/lib/class-freecanvas.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: canvas, handwriting
free-canvas/freecanvas.php 92% from 13 tests
The main PHP file in "Free Canvas" ver. 1.10 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("free-canvas.php" instead of "freecanvas.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin488 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 69 | 146 | 341 |
JavaScript | 2 | 21 | 40 | 147 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected