Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.33MB] [CPU: ▼300.27ms] Passed 4 tests
This is a short check of server-side resources used by Canvas Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 59.35 ▼0.89 |
Dashboard /wp-admin | 3.29 ▼0.12 | 27.98 ▼10.28 |
Posts /wp-admin/edit.php | 3.34 ▼0.29 | 26.42 ▼13.29 |
Add New Post /wp-admin/post-new.php | 6.07 ▼0.90 | 78.22 ▼1,173.49 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 26.49 ▼4.03 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Canvas Portfolio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲48 | 15.81 ▲0.18 | 6.52 ▲0.91 | 2.09 ▼0.54 |
Dashboard /wp-admin | 2,934 ▲73 | 6.16 ▼0.05 | 115.94 ▼19.64 | 155.92 ▼83.33 |
Posts /wp-admin/edit.php | 2,711 ▲21 | 3.24 ▲0.00 | 86.05 ▲23.38 | 141.49 ▼9.15 |
Add New Post /wp-admin/post-new.php | 1,782 ▲92 | 22.70 ▲1.72 | 427.31 ▼2.72 | 161.81 ▼30.16 |
Media Library /wp-admin/upload.php | 1,737 ▲43 | 5.50 ▼0.05 | 143.65 ▼18.91 | 183.46 ▼15.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 16× 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-portfolio/includes/portfolio-load-more.php:237
- > PHP Fatal error
Uncaught Error: Call to undefined function cnvsport_portfolio_area_classes() in wp-content/plugins/canvas-portfolio/public/block/post-area-categories.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/canvas-portfolio/public/block/post-area-init.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/canvas-portfolio/public/block/post-area-none.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function cnvsport_portfolio_area_classes() in wp-content/plugins/canvas-portfolio/public/block/post-area-custom.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function cnvsport_portfolio_area_classes() in wp-content/plugins/canvas-portfolio/public/block/post-area-post.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas-portfolio/includes/register-post-types.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/canvas-portfolio/public/block/post-area-none.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas-portfolio/public/class-canvas-portfolio-block.php:21
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/canvas-portfolio/public/block/post-area-init.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
6 plugin tags: projects, image, canvas, responsive, gallery...
canvas-portfolio/canvas-portfolio.php 92% from 13 tests
The main file in "Canvas Portfolio" v. 1.0.2 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:
- Description: Please don't use more than 140 characters for the plugin description (currently 164 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 detected4,560 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 432 | 1,044 | 2,122 |
CSS | 6 | 223 | 33 | 1,267 |
JavaScript | 5 | 374 | 269 | 1,132 |
SVG | 1 | 0 | 0 | 38 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 45 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin