Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.79MB] [CPU: ▼1.03ms] Passed 4 tests
A check of server-side resources used by Portfolio X
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 44.40 ▲5.39 |
Dashboard /wp-admin | 4.15 ▲0.85 | 50.32 ▼2.15 |
Posts /wp-admin/edit.php | 4.17 ▲0.82 | 52.11 ▲3.90 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.87 | 86.25 ▼11.27 |
Media Library /wp-admin/upload.php | 4.07 ▲0.85 | 49.01 ▲14.08 |
Add Portfolio Item /wp-admin/post-new.php?post_type=portfolio-x | 4.57 | 58.54 |
Portfolio X /wp-admin/edit.php?post_type=qcpx_portfolio | 4.12 | 43.26 |
Portfolio Items /wp-admin/edit.php?post_type=portfolio-x | 4.12 | 38.70 |
Settings /wp-admin/edit.php?post_type=qcpx_portfolio&page=qcpx-options-page | 4.05 | 39.75 |
Support /wp-admin/edit.php?post_type=qcpx_portfolio&page=qcpro-promo-page-qcpx_portfolio-qcld-support | 4.05 | 36.79 |
Server storage [IO: ▲9.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 579 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_qcldlatestportfolio_widget |
qx_ot_convrt |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Portfolio X
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,355 ▲594 | 13.92 ▼0.43 | 14.93 ▲13.19 | 31.71 ▼9.75 |
Dashboard /wp-admin | 2,282 ▲105 | 5.00 ▼0.57 | 86.78 ▼1.94 | 39.69 ▼0.40 |
Posts /wp-admin/edit.php | 2,199 ▲99 | 2.49 ▲0.54 | 42.12 ▲7.37 | 36.57 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,599 ▲71 | 22.91 ▼0.17 | 661.65 ▼9.42 | 37.52 ▼17.12 |
Media Library /wp-admin/upload.php | 1,484 ▲84 | 4.52 ▲0.35 | 115.98 ▲10.53 | 49.54 ▲1.42 |
Add Portfolio Item /wp-admin/post-new.php?post_type=portfolio-x | 2,995 | 9.66 | 222.95 | 84.97 |
Portfolio X /wp-admin/edit.php?post_type=qcpx_portfolio | 1,154 | 2.49 | 35.33 | 28.90 |
Portfolio Items /wp-admin/edit.php?post_type=portfolio-x | 1,199 | 2.34 | 33.52 | 27.07 |
Settings /wp-admin/edit.php?post_type=qcpx_portfolio&page=qcpx-options-page | 1,592 | 2.38 | 43.74 | 62.39 |
Support /wp-admin/edit.php?post_type=qcpx_portfolio&page=qcpro-promo-page-qcpx_portfolio-qcld-support | 1,946 | 1.97 | 28.72 | 86.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_qcldlatestportfolio_widget
- qx_ot_convrt
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/portfolio-x/inc/option-tree/includes/ot-functions-docs-page.php
- > /wp-content/plugins/portfolio-x/inc/option-tree/includes/ot-functions-option-types.php
- > /wp-content/plugins/portfolio-x/inc/option-tree/includes/ot-functions-settings-page.php
- > /wp-content/plugins/portfolio-x/inc/option-tree/includes/ot-functions.php
- > /wp-content/plugins/portfolio-x/portfolio-x.php
- > /wp-content/plugins/portfolio-x/inc/option-tree/includes/ot-settings-api.php
- > /wp-content/plugins/portfolio-x/inc/option-tree/includes/ot-functions-deprecated.php
- > /wp-content/plugins/portfolio-x/inc/option-tree/includes/ot-functions-admin.php
- > /wp-content/plugins/portfolio-x/inc/option-tree/includes/ot-meta-box-api.php
- > /wp-content/plugins/portfolio-x/inc/option-tree/includes/ot-functions-compat.php
- 70× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant PORTFOLIO_THEME_URL - assumed 'PORTFOLIO_THEME_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/portfolio-x/themes/template-03/qcld-portfolio-template.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function qcpx_get_option() in wp-content/plugins/portfolio-x/themes/template-03/qcld-portfolio-template.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-x/qcld-admin-end-functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/portfolio-x/themes/showcase/style-02/index.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/portfolio-x/inc/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/portfolio-x/qcld-register-shortcodes.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-x/inc/cmb2/includes/helper-functions.php:120
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-x/inc/option-tree/assets/theme-mode/demo-theme-options.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/portfolio-x/inc/cmb2/includes/CMB2.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/portfolio-x/inc/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: portfolio grid, portfolio widget, portfolio, portfolio gallery, client showcase
portfolio-x/portfolio-x.php 92% from 13 tests
"Portfolio X" version 3.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 176 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 plugin84,189 lines of code in 297 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 122 | 14,673 | 19,163 | 34,854 |
CSS | 43 | 1,897 | 1,750 | 21,190 |
PHP | 95 | 6,613 | 8,961 | 17,931 |
JavaScript | 21 | 1,437 | 969 | 5,325 |
SVG | 3 | 0 | 0 | 3,735 |
Sass | 13 | 238 | 25 | 1,154 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 19.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 8 | 11.11% |
▷ Concrete classes | 64 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 517 | |
▷ Static methods | 67 | 12.96% |
▷ Public methods | 439 | 84.91% |
▷ Protected methods | 68 | 13.15% |
▷ Private methods | 10 | 1.93% |
Functions | 266 | |
▷ Named functions | 266 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 40 | |
▷ Global constants | 34 | 85.00% |
▷ Class constants | 6 | 15.00% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
93 PNG files occupy 1.73MB with 1.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
qc-promo-page/images/light_bulb.png | 88.65KB | 27.35KB | ▼ 69.15% |
inc/option-tree/assets/images/layout/left-dual-sidebar.png | 3.83KB | 2.06KB | ▼ 46.34% |
qc-support-promo-page/images/step3.png | 92.04KB | 33.49KB | ▼ 63.62% |
qc-support-promo-page/images/premium-theme-sld.png | 36.77KB | 13.88KB | ▼ 62.25% |
themes/widgets/style-2/js/images/controls.png | 1.91KB | 0.60KB | ▼ 68.37% |