Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▲2.08ms] Passed 4 tests
A check of server-side resources used by Team Master - A Modern WordPress Team Showcase
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 52.49 ▲13.85 |
Dashboard /wp-admin | 3.68 ▲0.38 | 57.56 ▲4.18 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 60.22 ▲4.57 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 92.38 ▼9.96 |
Media Library /wp-admin/upload.php | 3.54 ▲0.32 | 45.72 ▲9.52 |
Add New /wp-admin/post-new.php?post_type=tm_members | 3.73 | 59.10 |
Shortcode /wp-admin/edit.php?post_type=tm_members&page=team-master-shortcode-builder | 3.60 | 44.95 |
All Members /wp-admin/edit.php?post_type=tm_members | 3.57 | 46.19 |
Roles /wp-admin/edit-tags.php?taxonomy=tm_members_role&post_type=tm_members | 3.54 | 42.74 |
Settings /wp-admin/edit.php?post_type=tm_members&page=team-master-settings | 3.60 | 42.90 |
Server storage [IO: ▲4.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: no new tables, 18 new options
New WordPress options |
---|
tm_default_title_color |
can_compress_scripts |
tm_default_activate_carousel |
tm_default_background_color |
widget_recent-posts |
tm_default_load_more |
tm_default_auto_play_carousel |
tm_default_perpage |
tm_default_column |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Team Master - A Modern WordPress Team Showcase
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲228 | 13.82 ▼0.48 | 10.17 ▲8.41 | 42.18 ▲2.93 |
Dashboard /wp-admin | 2,247 ▲56 | 5.90 ▲0.09 | 101.20 ▼5.83 | 42.05 ▼3.54 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 1.97 ▼0.02 | 40.41 ▲0.73 | 34.76 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,562 ▲43 | 23.31 ▲0.04 | 684.28 ▲17.51 | 63.63 ▲2.54 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.30 ▲0.04 | 96.29 ▼23.22 | 44.26 ▼7.94 |
Add New /wp-admin/post-new.php?post_type=tm_members | 2,480 | 7.79 | 176.70 | 69.40 |
Shortcode /wp-admin/edit.php?post_type=tm_members&page=team-master-shortcode-builder | 2,216 | 3.62 | 103.90 | 43.55 |
All Members /wp-admin/edit.php?post_type=tm_members | 1,127 | 1.95 | 33.02 | 34.24 |
Roles /wp-admin/edit-tags.php?taxonomy=tm_members_role&post_type=tm_members | 1,300 | 2.14 | 27.19 | 31.31 |
Settings /wp-admin/edit.php?post_type=tm_members&page=team-master-settings | 2,081 | 3.15 | 86.54 | 39.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 18 options
- tm_default_designation_color
- tm_default_color
- tm_default_btn_color
- widget_recent-comments
- can_compress_scripts
- tm_default_title_color
- widget_recent-posts
- tm_default_background_color
- tm_default_load_more
- db_upgraded
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/team-master/admin/partials/team-master-admin-display.php
- > /wp-content/plugins/team-master/public/partials/team-master-member-modal.php
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/team-master/admin/team/team-master-vc-shortcode.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/team-master/admin/team/team-master-settings.php:7
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/team-master/admin/team/team-master-vc-shortcode.php on line 14
- > PHP Notice
Undefined variable: background in wp-content/plugins/team-master/public/partials/templates/tm_template_4.php on line 2
- > PHP Notice
Undefined variable: classes in wp-content/plugins/team-master/public/partials/templates/tm_template_4.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/team-master/public/partials/templates/archive-tm-members.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/team-master/public/partials/templates/single-tm-members.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/team-master/admin/team/team-master-vc-shortcode.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/team-master/public/partials/team-master-public-shortcode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/team-master/admin/team/team-master-usage.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 38 tag instead of maximum 10
team-master/team-master.php 92% from 13 tests
"Team Master - A Modern WordPress Team Showcase" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 184 characters long)
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 detected21,374 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 2,835 | 75 | 9,995 |
SVG | 4 | 1 | 12 | 8,902 |
PHP | 24 | 245 | 773 | 2,071 |
JavaScript | 7 | 20 | 11 | 406 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.42% |
Functions | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
25 PNG files occupy 0.96MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/avatar-300x320.png | 9.21KB | 3.66KB | ▼ 60.27% |
public/img/avatar-300x300.png | 28.54KB | 8.41KB | ▼ 70.54% |
public/img/avatar-450x640.png | 23.56KB | 9.09KB | ▼ 61.41% |
admin/img/icon-32.png | 2.00KB | 1.55KB | ▼ 22.47% |
public/img/avatar-400x400.png | 25.05KB | 7.05KB | ▼ 71.87% |