Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.08MB] [CPU: ▲6.11ms] 75% from 4 tests
Analyzing server-side resources used by HT Portfolio - WordPress Portfolio Plugin for Elementor
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,385.72ms on /wp-admin/admin.php?page=htportfolio-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.48 ▲1.02 | 48.56 ▲4.97 |
Dashboard /wp-admin | 4.48 ▲1.18 | 58.59 ▲10.71 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 57.18 ▲14.00 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 96.88 ▲1.42 |
Media Library /wp-admin/upload.php | 4.30 ▲1.08 | 41.34 ▲7.33 |
Settings /wp-admin/admin.php?page=htportfolio_options | 4.30 | 46.67 |
Portfolio /wp-admin/edit.php?post_type=ht_portfolios | 4.41 | 45.89 |
Gallery /wp-admin/edit.php?post_type=htportfolio_gallery | 4.41 | 44.99 |
Recommendations /wp-admin/admin.php?page=htportfolio-recommendations | 8.56 | 1,385.72 |
Server storage [IO: ▲4.49MB] [DB: ▲0.67MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 412 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
htportfolio_settings |
htportfolio_pro_themes |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for HT Portfolio - WordPress Portfolio Plugin for Elementor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,186 ▲451 | 15.78 ▲1.03 | 13.95 ▲12.17 | 44.60 ▲2.55 |
Dashboard /wp-admin | 2,426 ▲237 | 6.74 ▲1.84 | 134.75 ▲14.16 | 42.04 ▼5.12 |
Posts /wp-admin/edit.php | 2,337 ▲251 | 3.61 ▲1.55 | 55.71 ▲21.29 | 39.25 ▲3.97 |
Add New Post /wp-admin/post-new.php | 1,572 ▲41 | 16.41 ▼6.72 | 550.97 ▼63.27 | 40.96 ▼10.07 |
Media Library /wp-admin/upload.php | 1,476 ▲88 | 4.42 ▲0.19 | 84.12 ▼12.62 | 39.52 ▼2.69 |
Settings /wp-admin/admin.php?page=htportfolio_options | 1,259 | 3.68 | 80.42 | 33.07 |
Portfolio /wp-admin/edit.php?post_type=ht_portfolios | 1,315 | 3.63 | 49.35 | 34.02 |
Gallery /wp-admin/edit.php?post_type=htportfolio_gallery | 1,315 | 3.64 | 49.86 | 33.89 |
Recommendations /wp-admin/admin.php?page=htportfolio-recommendations | 3,130 | 3.53 | 108.71 | 35.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- htportfolio_pro_themes
- htportfolio_settings
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 46× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/ht-portfolio/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/ht-portfolio/admin/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-portfolio/admin/cmb2/includes/helper-functions.php:131
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/ht-portfolio/admin/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ht-portfolio/admin/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ht-portfolio/admin/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/ht-portfolio/admin/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/ht-portfolio/admin/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ht-portfolio/admin/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/ht-portfolio/admin/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in ht-portfolio/assets to your readme.txt
ht-portfolio/htportfolio.php 77% from 13 tests
Analyzing the main PHP file in "HT Portfolio - WordPress Portfolio Plugin for Elementor" version 1.1.6
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ht-portfolio.php" instead of "htportfolio.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin57,539 lines of code in 245 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 69 | 2,555 | 6,415 | 10,846 |
CSS | 20 | 922 | 1,252 | 8,689 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 17 | 393 | 664 | 1,585 |
Sass | 17 | 306 | 29 | 1,410 |
YAML | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 20.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 9 | 12.16% |
▷ Concrete classes | 65 | 87.84% |
▷ Final classes | 0 | 0.00% |
Methods | 597 | |
▷ Static methods | 89 | 14.91% |
▷ Public methods | 501 | 83.92% |
▷ Protected methods | 93 | 15.58% |
▷ Private methods | 3 | 0.50% |
Functions | 42 | |
▷ Named functions | 41 | 97.62% |
▷ Anonymous functions | 1 | 2.38% |
Constants | 13 | |
▷ Global constants | 7 | 53.85% |
▷ Class constants | 6 | 46.15% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
assets/images/extensions/ht-script-pro.png | 6.03KB | 2.71KB | ▼ 55.09% |
(invalid) assets/images/extensions/ht-google-place-review.png | 2.64KB | 0.00KB | ▼ 100.00% |
admin/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
(invalid) assets/images/extensions/cf7-extensions-pro.png | 8.57KB | 0.00KB | ▼ 100.00% |