Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▲1.28ms] 75% from 4 tests
Server-side resources used by WP Team - WordPress Team Member Plugin
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 1,336.10ms on /wp-admin/admin.php?page=ht-teammember-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 52.47 ▲10.79 |
Dashboard /wp-admin | 3.88 ▲0.57 | 60.85 ▲6.75 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 55.05 ▲1.18 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 93.87 ▼8.01 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 39.98 ▲5.21 |
Team Member /wp-admin/edit.php?post_type=htteam_member | 3.85 | 48.82 |
Settings /wp-admin/admin.php?page=htteamoptions | 3.71 | 36.30 |
Recommendations /wp-admin/admin.php?page=ht-teammember-recommendations | 8.09 | 1,336.10 |
Server storage [IO: ▲1.45MB] [DB: ▲0.67MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 10 new options
New WordPress options |
---|
htteam_widgets_general_tabs |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
htteam_widgets_options_tabs |
widget_htteammember_default_widgets |
can_compress_scripts |
widget_recent-posts |
htteam_shortcodeopt_tabs |
Browser metrics Passed 4 tests
A check of browser resources used by WP Team - WordPress Team Member Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲197 | 14.64 ▲0.24 | 1.84 ▼0.31 | 44.59 ▼1.39 |
Dashboard /wp-admin | 2,382 ▲205 | 6.34 ▲0.67 | 115.52 ▲25.41 | 40.92 ▲0.80 |
Posts /wp-admin/edit.php | 2,325 ▲222 | 3.50 ▲1.52 | 55.64 ▲11.63 | 31.24 ▼7.43 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.27 ▲0.35 | 605.69 ▼53.41 | 32.69 ▼31.48 |
Media Library /wp-admin/upload.php | 1,458 ▲55 | 4.37 ▲0.19 | 80.72 ▼20.54 | 40.94 ▼6.18 |
Team Member /wp-admin/edit.php?post_type=htteam_member | 1,293 | 3.53 | 49.46 | 26.40 |
Settings /wp-admin/admin.php?page=htteamoptions | 1,474 | 3.33 | 46.50 | 27.54 |
Recommendations /wp-admin/admin.php?page=ht-teammember-recommendations | 3,100 | 3.29 | 48.39 | 93.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- htteam_widgets_options_tabs
- htteam_shortcodeopt_tabs
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- htteam_widgets_general_tabs
- widget_htteammember_default_widgets
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 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/ht-team-member/template/archive-htteam_member.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ht-team-member/include/default_widgets.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ht-team-member/include/shortcode.php:323
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-team-member/admin/include/Custom_meta_fields.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ht-team-member/template/single-htteam_member.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-team-member/admin/classes/Custom_post_type.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-team-member/include/vc_map.php:430
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: team, team member, wp team, widgets, elementor
ht-team-member/ht-team-member.php 85% from 13 tests
The primary PHP file in "WP Team - WordPress Team Member Plugin" version 1.1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- 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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected7,141 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 636 | 349 | 3,759 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 4 | 57 | 10 | 539 |
JavaScript | 3 | 38 | 40 | 172 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 1 | 1.49% |
▷ Public methods | 64 | 95.52% |
▷ Protected methods | 3 | 4.48% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/assets/images/extensions/ht-menu.png | 2.85KB | 0.00KB | ▼ 100.00% |
admin/assets/images/extensions/ht-slider-addons-pro.png | 6.41KB | 4.35KB | ▼ 32.23% |
admin/assets/images/extensions/whols-pro.png | 15.30KB | 7.40KB | ▼ 51.65% |
admin/assets/images/extensions/swatchly-pro.png | 13.99KB | 5.41KB | ▼ 61.37% |
admin/assets/images/extensions/ht-script-pro.png | 6.03KB | 2.71KB | ▼ 55.09% |