Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.28ms] Passed 4 tests
This is a short check of server-side resources used by Canvasflow for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 45.91 ▲4.11 |
Dashboard /wp-admin | 3.48 ▲0.17 | 52.21 ▼2.31 |
Posts /wp-admin/edit.php | 3.60 ▲0.23 | 51.27 ▼2.27 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 100.34 ▼12.97 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.69 ▲0.44 |
Posts Manager /wp-admin/admin.php?page=canvasflow-posts-manager | 3.50 | 47.10 |
Settings /wp-admin/admin.php?page=canvasflow-settings | 3.55 | 40.96 |
Upload Manager /wp-admin/admin.php?page=wp-canvasflow-plugin | 3.51 | 37.42 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_canvasflow_version |
wp_canvasflow_credentials |
wp_canvasflow_posts |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
category_children |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Canvasflow for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.35 ▼0.00 | 1.65 ▼0.18 | 41.23 ▼2.58 |
Dashboard /wp-admin | 2,211 ▲31 | 5.58 ▼0.02 | 87.52 ▼8.30 | 64.72 ▲21.48 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.01 ▲0.03 | 38.18 ▼2.82 | 34.70 ▼5.08 |
Add New Post /wp-admin/post-new.php | 6,424 ▲4,889 | 22.41 ▲4.21 | 904.94 ▲261.30 | 61.68 ▲1.32 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.18 ▼0.03 | 98.91 ▼2.18 | 69.98 ▲24.95 |
Posts Manager /wp-admin/admin.php?page=canvasflow-posts-manager | 1,126 | 2.04 | 25.25 | 31.21 |
Settings /wp-admin/admin.php?page=canvasflow-settings | 831 | 2.01 | 25.20 | 24.08 |
Upload Manager /wp-admin/admin.php?page=wp-canvasflow-plugin | 789 | 2.18 | 24.95 | 24.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- category_children
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/canvasflow/includes/views/canvasflow-main-view.php
- > /wp-content/plugins/canvasflow/includes/views/canvasflow-post-manager-view.php
- 77× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: page in wp-content/plugins/canvasflow/includes/views/canvasflow-main-view.php on line 25
- > PHP Notice
Undefined variable: search in wp-content/plugins/canvasflow/includes/views/canvasflow-main-view.php on line 56
- > PHP Fatal error
Uncaught Error: Class 'WP_Canvasflow' not found in wp-content/plugins/canvasflow/includes/canvasflow-main.php:2
- > PHP Warning
require_once(wp-content/plugins/canvasflow/includes/wp-config.php): failed to open stream: No such file or directory in wp-content/plugins/canvasflow/includes/canvasflow-db.php on line 6
- > PHP Notice
Undefined variable: search in wp-content/plugins/canvasflow/includes/views/canvasflow-post-manager-view.php on line 162
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/canvasflow/includes/canvasflow-shortcodes.php on line 10
- > PHP Notice
Undefined variable: total_of_pages in wp-content/plugins/canvasflow/includes/views/canvasflow-main-view.php on line 60
- > PHP Notice
Undefined variable: search in wp-content/plugins/canvasflow/includes/views/canvasflow-main-view.php on line 184
- > PHP Warning
sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/canvasflow/includes/views/canvasflow-main-view.php on line 213
- > PHP Notice
Undefined variable: order_by in wp-content/plugins/canvasflow/includes/views/canvasflow-post-manager-view.php on line 132
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Manage all of your posts in Canvasflow from your WordPress dashboard), #2 (Easily select which posts are eligible for upload to your Canvasflow publication), #3 (Override the style an article inherits on a per upload basis.), #4 (Real time sync status manages and notifies you of all content changes), #5 (Customise the plugin to match your workflow.)
- Tags: You are using too many tags: 12 tag instead of maximum 10
canvasflow/canvasflow-plugin.php 85% from 13 tests
The principal PHP file in "Canvasflow for WordPress" v. 1.5.5 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("canvasflow.php" instead of "canvasflow-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,813 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 500 | 48 | 3,384 |
Markdown | 1 | 81 | 0 | 223 |
CSS | 1 | 21 | 0 | 130 |
JavaScript | 1 | 14 | 6 | 76 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 91 | 84.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 15.74% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/favicon.png | 0.90KB | 0.57KB | ▼ 36.97% |