Benchmarks
Plugin footprint 83% 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: ▲1.47MB] [CPU: ▲4.19ms] Passed 4 tests
An overview of server-side resources used by Canvas
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.02 ▲1.56 | 46.84 ▲7.70 |
Dashboard /wp-admin | 4.76 ▲1.41 | 56.36 ▼6.77 |
Posts /wp-admin/edit.php | 4.81 ▲1.45 | 57.34 ▲7.21 |
Add New Post /wp-admin/post-new.php | 8.29 ▲2.40 | 107.75 ▲10.00 |
Media Library /wp-admin/upload.php | 4.68 ▲1.45 | 46.39 ▲8.63 |
Server storage [IO: ▲1.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 281 new files
Database: no new tables, 7 new options
New WordPress options |
---|
canvas_db_version |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Canvas
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲197 | 13.66 ▼0.68 | 13.95 ▲11.98 | 36.48 ▼0.62 |
Dashboard /wp-admin | 2,197 ▲23 | 5.63 ▲0.03 | 90.67 ▼9.52 | 41.59 ▼3.56 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.98 ▲0.03 | 36.58 ▼3.43 | 30.27 ▼6.98 |
Add New Post /wp-admin/post-new.php | 6,355 ▲4,829 | 27.19 ▲3.90 | 1,035.49 ▲374.34 | 38.49 ▼17.37 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.17 ▲0.07 | 104.69 ▲2.46 | 76.14 ▲32.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- canvas_db_version
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
- 77× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas/components/content-formatting/class-block-heading.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas/components/posts/class-block-posts-sidebar.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/canvas/components/basic-elements/block-tabs/render.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas/components/layout-blocks/class-block-row.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas/components/slider-gallery/class-block-slider-gallery.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas/components/justified-gallery/class-block-justified-gallery.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/canvas/components/layout-blocks/block-column/render.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/canvas/components/basic-elements/block-collapsibles/render.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/canvas/components/basic-elements/block-widgetized-area/render.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/canvas/components/posts/block-posts/layouts/grid.php:22
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: theme, page, template
canvas/canvas.php 92% from 13 tests
Analyzing the main PHP file in "Canvas" version 2.4.3
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected24,398 lines of code in 264 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 62 | 1,386 | 701 | 9,687 |
JSX | 92 | 1,468 | 1,969 | 7,847 |
PHP | 57 | 1,203 | 1,912 | 6,234 |
JavaScript | 50 | 126 | 223 | 593 |
SVG | 1 | 0 | 0 | 26 |
XML | 1 | 0 | 0 | 10 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 20.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 6 | 4.23% |
▷ Public methods | 141 | 99.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.70% |
Functions | 46 | |
▷ Named functions | 44 | 95.65% |
▷ Anonymous functions | 2 | 4.35% |
Constants | 6 | |
▷ Global constants | 6 | 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
No PNG files were detected