Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼3.07ms] Passed 4 tests
A check of server-side resources used by Winning Portfolio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 38.77 ▼12.17 |
Dashboard /wp-admin | 3.65 ▲0.35 | 50.38 ▲5.78 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 50.67 ▼1.96 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 96.06 ▼3.92 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.00 ▲7.00 |
About /wp-admin/edit.php?post_type=wpf-portfolio&page=wpf-about | 3.49 | 34.40 |
Add New /wp-admin/post-new.php?post_type=wpf-portfolio | 3.70 | 54.10 |
Category /wp-admin/edit-tags.php?taxonomy=wportfolio_category&post_type=wpf-portfolio | 3.50 | 35.96 |
Options /wp-admin/edit.php?post_type=wpf-portfolio&page=wpf | 3.48 | 33.09 |
Licenses /wp-admin/edit.php?post_type=wpf-portfolio&page=wpf-licencing | 3.48 | 32.59 |
All Portfolios /wp-admin/edit.php?post_type=wpf-portfolio | 3.55 | 36.07 |
Addons /wp-admin/edit.php?post_type=wpf-portfolio&page=wpf-addons | 3.49 | 32.13 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Winning Portfolio
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.30 ▼0.99 | 1.75 ▼0.02 | 39.73 ▼9.63 |
Dashboard /wp-admin | 2,261 ▲73 | 5.87 ▼0.03 | 99.57 ▼7.91 | 86.24 ▲45.18 |
Posts /wp-admin/edit.php | 2,147 ▲55 | 2.01 ▼0.01 | 37.39 ▼5.25 | 34.45 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,721 ▲188 | 24.76 ▲1.73 | 707.27 ▲25.85 | 64.00 ▲8.29 |
Media Library /wp-admin/upload.php | 1,440 ▲52 | 4.28 ▲0.16 | 96.96 ▼13.91 | 76.13 ▲29.96 |
About /wp-admin/edit.php?post_type=wpf-portfolio&page=wpf-about | 935 | 2.16 | 27.92 | 65.37 |
Add New /wp-admin/post-new.php?post_type=wpf-portfolio | 2,559 | 7.94 | 169.62 | 141.54 |
Category /wp-admin/edit-tags.php?taxonomy=wportfolio_category&post_type=wpf-portfolio | 1,314 | 2.15 | 25.64 | 31.90 |
Options /wp-admin/edit.php?post_type=wpf-portfolio&page=wpf | 1,401 | 2.88 | 57.34 | 35.19 |
Licenses /wp-admin/edit.php?post_type=wpf-portfolio&page=wpf-licencing | 874 | 2.04 | 28.94 | 26.40 |
All Portfolios /wp-admin/edit.php?post_type=wpf-portfolio | 1,137 | 2.24 | 32.79 | 25.94 |
Addons /wp-admin/edit.php?post_type=wpf-portfolio&page=wpf-addons | 936 | 2.03 | 26.14 | 39.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/winning-portfolio/uninstall.php+19
Undefined variable: op
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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 take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/winning-portfolio/core/inc/kc_support.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/winning-portfolio/core/inc/vc_support.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/winning-portfolio/pages/addons.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/winning-portfolio/pages/dashboard.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/winning-portfolio/core/license.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/winning-portfolio/core/license.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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:
- Donate link: Please fix this invalid url: ""
winning-portfolio/main.php 85% from 13 tests
The main PHP file in "Winning Portfolio" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("winning-portfolio.php" instead of "main.php")
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
There were no executable files found in this plugin1,981 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 332 | 620 | 1,397 |
CSS | 2 | 72 | 5 | 363 |
JavaScript | 2 | 61 | 65 | 221 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 2 | 2.82% |
▷ Public methods | 71 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.66MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-color-42.png | 4.71KB | 2.05KB | ▼ 56.45% |
assets/images/logo-bw.png | 2.16KB | 1.06KB | ▼ 50.81% |
assets/images/additions.png | 300.47KB | 110.71KB | ▼ 63.15% |
assets/images/masonry.png | 166.54KB | 78.32KB | ▼ 52.97% |
assets/images/logo-color-60.png | 6.82KB | 2.63KB | ▼ 61.48% |