Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.57MB] [CPU: ▼45.47ms] Passed 4 tests
An overview of server-side resources used by Companion Portfolio - Responsive Portfolio Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.43 ▼1.04 | 11.06 ▼28.70 |
Dashboard /wp-admin | 2.44 ▼0.90 | 14.58 ▼45.88 |
Posts /wp-admin/edit.php | 2.44 ▼0.91 | 14.32 ▼28.01 |
Add New Post /wp-admin/post-new.php | 2.44 ▼3.45 | 13.54 ▼79.30 |
Media Library /wp-admin/upload.php | 2.44 ▼0.79 | 14.33 ▼18.83 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio | 2.44 | 15.42 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio | 2.44 | 16.14 |
New item /wp-admin/post-new.php?post_type=portfolio | 2.44 | 13.39 |
All items /wp-admin/edit.php?post_type=portfolio | 2.44 | 15.61 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
portfolio_cat_children |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Companion Portfolio - Responsive Portfolio Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 14.14 ▼0.39 | 1.75 ▼0.05 | 43.23 ▲0.81 |
Dashboard /wp-admin | 2,233 ▲59 | 5.59 ▲0.02 | 86.76 ▲1.28 | 40.68 ▼3.72 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.98 ▲0.02 | 35.99 ▲1.54 | 32.57 ▼5.89 |
Add New Post /wp-admin/post-new.php | 1,709 ▲183 | 23.84 ▲0.56 | 655.00 ▼7.59 | 58.14 ▲8.13 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.18 ▲0.04 | 111.69 ▲7.40 | 48.54 ▲5.90 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio | 1,413 | 2.12 | 32.14 | 33.90 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio | 1,278 | 2.12 | 26.87 | 30.77 |
New item /wp-admin/post-new.php?post_type=portfolio | 6,257 | 21.40 | 866.38 | 31.55 |
All items /wp-admin/edit.php?post_type=portfolio | 1,132 | 1.96 | 30.86 | 27.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/companion-portfolio/companion_portfolio.php+87
Undefined variable: slug
- This plugin did not uninstall successfully, leaving 7 options in the database
- portfolio_cat_children
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 26 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/companion-portfolio/companion_portfolio.php+87
Undefined variable: slug
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-includes/post.php+5292
Object of class WP_Term could not be converted to int
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/companion-portfolio/companion_portfolio.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/companion-portfolio/cp_gutenberg.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Screenshot #5 (Add a shortcode to your page using the generator popup.) image required
- Tags: You are using too many tags: 17 tag instead of maximum 10
companion-portfolio/companion_portfolio.php 92% from 13 tests
The principal PHP file in "Companion Portfolio - Responsive Portfolio Plugin" v. 2.4.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("companion-portfolio.php" instead of "companion_portfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected723 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 106 | 75 | 334 |
CSS | 1 | 10 | 4 | 214 |
JavaScript | 1 | 22 | 10 | 175 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin