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: ▼0.14MB] [CPU: ▼17.44ms] Passed 4 tests
Analyzing server-side resources used by Canvas Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 34.99 ▼6.28 |
Dashboard /wp-admin | 3.23 ▼0.08 | 34.85 ▼14.75 |
Posts /wp-admin/edit.php | 3.30 ▼0.06 | 38.84 ▼11.93 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.42 | 82.98 ▼36.80 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 32.71 ▼3.46 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Canvas Portfolio
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.26 ▼0.12 | 1.93 ▲0.05 | 39.51 ▼9.24 |
Dashboard /wp-admin | 2,222 ▲48 | 5.55 ▼0.10 | 86.08 ▼1.01 | 39.21 ▼5.25 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.12 ▲0.16 | 40.77 ▲2.93 | 37.37 ▲6.58 |
Add New Post /wp-admin/post-new.php | 1,548 ▲13 | 22.65 ▲4.42 | 672.27 ▲12.09 | 52.77 ▼7.84 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.21 ▲0.03 | 98.89 ▼10.09 | 44.90 ▼1.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 | 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× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas-portfolio/includes/class-canvas-portfolio-installer.php:26
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/canvas-portfolio/public/block/post-area-init.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas-portfolio/includes/register-post-fields.php:14
- > 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-custom.php:15
- > 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 Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/canvas-portfolio/includes/register-category-fields.php:21
- > 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 a member function item_class() on null in wp-content/plugins/canvas-portfolio/public/block/portfolio-entry.php:16
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: canvas, responsive, projects, portfolio, gallery...
canvas-portfolio/canvas-portfolio.php 92% from 13 tests
"Canvas Portfolio" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 164 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
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 short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
There were not PNG files found in your plugin