Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼2.71ms] Passed 4 tests
Analyzing server-side resources used by Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 44.92 ▲1.22 |
Dashboard /wp-admin | 3.60 ▲0.25 | 57.50 ▼5.51 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 56.88 ▲10.05 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 91.52 ▼9.56 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 40.96 ▲3.03 |
All Portfolios /wp-admin/edit.php?post_type=tcportfolio | 3.50 | 48.90 |
Portfolio Settings /wp-admin/edit.php?post_type=tcportfolio&page=tcportfolio-settings | 3.43 | 39.70 |
Categories /wp-admin/edit-tags.php?taxonomy=tcportfolio_category&post_type=tcportfolio | 3.46 | 38.98 |
Add New Portfolio /wp-admin/post-new.php?post_type=tcportfolio | 3.56 | 61.29 |
Help & Upgrade /wp-admin/edit.php?post_type=tcportfolio&page=tcportfolio_menu_help | 3.43 | 51.93 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
tc_portfolio_basics |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
tc_portfolio_style |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Portfolio
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,111 ▲365 | 15.12 ▲0.94 | 10.05 ▲8.11 | 44.70 ▲2.07 |
Dashboard /wp-admin | 2,390 ▲210 | 6.31 ▲0.70 | 110.81 ▲21.39 | 39.10 ▼0.01 |
Posts /wp-admin/edit.php | 2,320 ▲220 | 3.72 ▲1.67 | 48.40 ▲12.21 | 29.73 ▼7.41 |
Add New Post /wp-admin/post-new.php | 1,581 ▲46 | 23.18 ▼0.07 | 653.39 ▼31.11 | 36.52 ▼24.78 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 4.30 ▲0.10 | 84.34 ▼26.50 | 46.78 ▲0.08 |
All Portfolios /wp-admin/edit.php?post_type=tcportfolio | 1,318 | 3.43 | 51.40 | 28.03 |
Portfolio Settings /wp-admin/edit.php?post_type=tcportfolio&page=tcportfolio-settings | 1,354 | 3.40 | 75.44 | 36.88 |
Categories /wp-admin/edit-tags.php?taxonomy=tcportfolio_category&post_type=tcportfolio | 1,495 | 3.41 | 40.15 | 27.03 |
Add New Portfolio /wp-admin/post-new.php?post_type=tcportfolio | 2,565 | 7.90 | 186.35 | 76.07 |
Help & Upgrade /wp-admin/edit.php?post_type=tcportfolio&page=tcportfolio_menu_help | 1,658 | 10.20 | 288.23 | 71.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- tc_portfolio_basics
- tc_portfolio_style
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tc-portfolio/lib/tc-portfolio-help-upgrade.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tc-portfolio/template/single-tcportfolio.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tc-portfolio/lib/tc-portfolio-column.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tc-portfolio/tc-portfolio.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-portfolio/lib/tc-metabox.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-portfolio/lib/tc-portfolio-cpt.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tc-portfolio/template/single-tcportfolio-center.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-portfolio/public/tc-view.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: You are using too many tags: 21 tag instead of maximum 10
tc-portfolio/tc-portfolio.php 92% from 13 tests
The entry point to "Portfolio" version 1.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 262 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,786 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 380 | 174 | 1,368 |
CSS | 4 | 66 | 24 | 1,308 |
PHP | 13 | 288 | 300 | 1,110 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin