Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.17ms] Passed 4 tests
Analyzing server-side resources used by Custom Content Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.18 ▼2.85 |
Dashboard /wp-admin | 3.54 ▲0.24 | 46.66 ▼1.51 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 48.34 ▼0.85 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 103.84 ▲8.05 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.30 ▲4.53 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio_project | 3.39 | 34.17 |
Settings /wp-admin/edit.php?post_type=portfolio_project&page=ccp-settings | 3.43 | 46.01 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio_project | 3.39 | 33.74 |
New Project /wp-admin/post-new.php?post_type=portfolio_project | 3.72 | 60.06 |
Projects /wp-admin/edit.php?post_type=portfolio_project | 3.53 | 41.13 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Custom Content Portfolio: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.64 ▼0.73 | 1.65 ▼0.37 | 47.31 ▲2.19 |
Dashboard /wp-admin | 2,245 ▲54 | 4.84 ▼0.06 | 109.21 ▲3.76 | 42.67 ▼3.88 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.03 ▲0.03 | 39.61 ▲3.91 | 35.22 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 17.61 ▼5.58 | 650.52 ▼21.63 | 47.23 ▼9.92 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.26 ▲0.06 | 99.42 ▲4.19 | 47.23 ▲3.22 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio_project | 1,301 | 2.13 | 25.10 | 27.45 |
Settings /wp-admin/edit.php?post_type=portfolio_project&page=ccp-settings | 1,758 | 6.73 | 143.85 | 71.55 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio_project | 1,270 | 2.13 | 27.08 | 26.68 |
New Project /wp-admin/post-new.php?post_type=portfolio_project | 3,039 | 8.09 | 172.62 | 71.26 |
Projects /wp-admin/edit.php?post_type=portfolio_project | 1,231 | 1.93 | 32.10 | 29.26 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 16× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/control-checkbox.php
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/manager.php
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/control-parent.php
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/control-color.php
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/section.php
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/nav.php
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/control-select.php
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/control-multi-avatars.php
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/control-radio-image.php
- > /wp-content/plugins/custom-content-portfolio/admin/butterbean/tmpl/control-checkboxes.php
- 30× 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/custom-content-portfolio/inc/functions-meta.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-portfolio/inc/functions-capabilities.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/custom-content-portfolio/portfolio.php:164
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-portfolio/inc/functions-filters.php:14
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/custom-content-portfolio/admin/butterbean/inc/controls/class-control-color.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-portfolio/admin/class-project-edit.php:30
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/custom-content-portfolio/admin/butterbean/inc/controls/class-control-palette.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-content-portfolio/admin/class-settings.php:38
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/custom-content-portfolio/admin/butterbean/inc/controls/class-control-image.php:20
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/custom-content-portfolio/admin/butterbean/inc/controls/class-control-checkboxes.php:20
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Projects management admin screen.), #2 (Edit project admin screen.), #3 (Project image media modal.), #4 (Portfolio settings admin screen.), #5 (Screenshot of the portfolio on the front end.)
custom-content-portfolio/portfolio.php 85% from 13 tests
The main PHP file in "Custom Content Portfolio" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-content-portfolio.php" instead of "portfolio.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,064 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 1,294 | 3,752 | 2,951 |
Markdown | 7 | 178 | 0 | 493 |
JavaScript | 4 | 184 | 394 | 361 |
CSS | 2 | 70 | 12 | 259 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 5 | 20.83% |
Methods | 190 | |
▷ Static methods | 5 | 2.63% |
▷ Public methods | 178 | 93.68% |
▷ Protected methods | 1 | 0.53% |
▷ Private methods | 11 | 5.79% |
Functions | 116 | |
▷ Named functions | 116 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.93MB with 0.57MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 247.66KB | 97.79KB | ▼ 60.51% |
screenshot-1.png | 230.03KB | 81.26KB | ▼ 64.68% |
screenshot-4.png | 95.59KB | 42.48KB | ▼ 55.56% |
screenshot-3.png | 380.14KB | 138.47KB | ▼ 63.57% |