Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.94MB] [CPU: ▼29.90ms] Passed 4 tests
Analyzing server-side resources used by Canvasflow Export
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.19 ▲6.89 |
Dashboard /wp-admin | 3.00 ▼0.30 | 23.20 ▼25.22 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 24.41 ▼20.35 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 24.18 ▼62.74 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 22.45 ▼11.27 |
Canvasflow Export /wp-admin/options-general.php?page=canvasflow-export-rest | 3.00 | 23.27 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_canvasflow_rest_credentials |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Canvasflow Export
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.17 ▼1.41 | 1.76 ▼0.15 | 43.83 ▼2.14 |
Dashboard /wp-admin | 2,211 ▲19 | 5.83 ▲0.90 | 98.10 ▼15.71 | 41.97 ▼2.81 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.04 ▼0.01 | 35.14 ▼0.36 | 31.19 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.12 ▲0.09 | 696.09 ▲26.37 | 56.88 ▼11.54 |
Media Library /wp-admin/upload.php | 1,390 ▲8 | 4.20 ▼0.02 | 96.60 ▼4.99 | 40.61 ▼5.16 |
Canvasflow Export /wp-admin/options-general.php?page=canvasflow-export-rest | 850 | 2.06 | 24.66 | 44.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=canvasflow-export-rest
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% 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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/canvasflow-export/canvasflow-export.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/canvasflow-export/includes/views/canvasflow-export-settings-view.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/canvasflow-export/includes/canvasflow-export-controller.php:12
- > PHP Fatal error
Uncaught Error: Class 'Canvasflow_Export_DB' not found in wp-content/plugins/canvasflow-export/includes/canvasflow-export-settings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: html5, digital publishing solution, html to wordpress, digital publishing, publish to wordpress...
canvasflow-export/canvasflow-export.php 92% from 13 tests
The main file in "Canvasflow Export" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,148 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 189 | 120 | 930 |
CSS | 1 | 21 | 0 | 130 |
Markdown | 1 | 26 | 0 | 64 |
JavaScript | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 41.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 74.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 25.49% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
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% |