Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼131.61ms] Passed 4 tests
An overview of server-side resources used by Canva - Design beautiful blog graphics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.14 ▲0.30 | 42.03 ▲17.94 |
Dashboard /wp-admin | 3.25 ▲0.19 | 53.62 ▲7.06 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 56.12 ▲8.11 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.16 | 106.16 ▼549.99 |
Media Library /wp-admin/upload.php | 3.16 ▲0.16 | 42.77 ▲8.39 |
Canva /wp-admin/admin.php?page=canva_settings | 3.14 | 36.73 |
Canva Database /wp-admin/admin.php?page=sub-page | 3.14 | 39.77 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 30 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_canva_images |
New WordPress options |
---|
canva_api_key |
canva_database_table |
canva_design_type |
canva_init |
Browser metrics Passed 4 tests
Checking browser requirements for Canva - Design beautiful blog graphics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,837 ▲241 | 17.26 ▲1.67 | 8.33 ▼3.48 | 53.56 ▲3.60 |
Dashboard /wp-admin | 3,082 ▲151 | 7.68 ▲1.60 | 157.64 ▲4.81 | 127.12 ▲15.68 |
Posts /wp-admin/edit.php | 2,886 ▲147 | 3.81 ▲1.12 | 85.67 ▲16.13 | 122.94 ▲19.61 |
Add New Post /wp-admin/post-new.php | 1,721 ▲219 | 17.16 ▼1.43 | 339.59 ▼48.05 | 112.95 ▲2.49 |
Media Library /wp-admin/upload.php | 1,797 ▼10 | 4.81 ▼0.21 | 117.36 ▼38.65 | 136.86 ▲16.19 |
Canva /wp-admin/admin.php?page=canva_settings | 1,310 | 3.28 | 69.38 | 81.73 |
Canva Database /wp-admin/admin.php?page=sub-page | 1,398 | 3.30 | 75.73 | 85.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_canva_images
- Zombie WordPress options were found after uninstall: 4 options
- canva_init
- canva_api_key
- canva_design_type
- canva_database_table
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'canvaDatabase' not found in wp-content/plugins/canva/inc/media.php:43
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/canva/inc/canvaDatabaseTableDisplay.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/canva/canva.php:37
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/canva/inc/canvaDatabaseTableDisplay.php on line 15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/canva/inc/canvaDatabaseTableDisplay.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/canva/screens/config.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sub-page
- > Network (severe)
https://sdk.canva.com/v1/api.js - Failed to load resource: the server responded with a status of 403 ()
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: canva
canva/canva.php 92% from 13 tests
"Canva - Design beautiful blog graphics" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 161 characters long)
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
Good job! No executable or dangerous file extensions detected1,112 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 307 | 389 | 668 |
JavaScript | 2 | 44 | 42 | 280 |
CSS | 1 | 5 | 4 | 106 |
Markdown | 1 | 35 | 0 | 58 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.86MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/canva-icon_20x20_sat.png | 2.00KB | 0.96KB | ▼ 51.97% |
images/canva-icon_20x20.png | 2.15KB | 1.12KB | ▼ 47.80% |
images/canva-icon_34x34_sat.png | 3.02KB | 1.55KB | ▼ 48.67% |
images/canva-icon_32x32_sat.png | 2.40KB | 1.39KB | ▼ 42.17% |
images/canva-icon_34x34.png | 3.25KB | 1.67KB | ▼ 48.42% |