Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼290.80ms] Passed 4 tests
An overview of server-side resources used by Team View
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.11 | 53.62 ▲0.38 |
Dashboard /wp-admin | 3.49 ▲0.09 | 34.84 ▲2.50 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 42.10 ▲5.56 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.04 | 94.39 ▼1,166.50 |
Media Library /wp-admin/upload.php | 3.44 ▲0.14 | 25.72 ▲0.42 |
All Team Members /wp-admin/edit.php?post_type=tv_member | 3.47 | 26.34 |
Add New /wp-admin/post-new.php?post_type=tv_member | 4.04 | 43.81 |
Server storage [IO: ▲2.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 137 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_team-view-grid |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Team View
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,958 ▲216 | 16.32 ▲0.69 | 9.32 ▲3.18 | 17.12 ▲14.78 |
Dashboard /wp-admin | 2,940 ▲79 | 6.11 ▲0.02 | 119.09 ▼19.61 | 156.32 ▼5.62 |
Posts /wp-admin/edit.php | 2,736 ▲42 | 3.26 ▲0.01 | 65.83 ▲2.81 | 140.03 ▼4.24 |
Add New Post /wp-admin/post-new.php | 1,697 ▲5 | 16.34 ▼4.45 | 414.89 ▼22.02 | 158.56 ▲7.19 |
Media Library /wp-admin/upload.php | 1,746 ▲48 | 5.60 ▲0.05 | 147.12 ▲8.75 | 190.58 ▲4.31 |
All Team Members /wp-admin/edit.php?post_type=tv_member | 1,409 | 3.18 | 61.62 | 112.36 |
Add New /wp-admin/post-new.php?post_type=tv_member | 2,409 | 5.76 | 112.78 | 131.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_team-view-grid
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/team-view/admin/partials/team-view-admin-display.php
- > /wp-content/plugins/team-view/public/partials/team-view-public-display.php
- 36× 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_Select' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/team-view/lib/cmb2/includes/CMB2.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/team-view/lib/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/team-view/lib/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/team-view/lib/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Adding team members), #2 (Display team members)
team-view/team-view.php Passed 13 tests
The main PHP file in "Team View" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
87 characters long description:
Simple and easy, responsive and mobile friendly plugin to display team members profile.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin17,983 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 1,090 | 1,055 | 7,123 |
PHP | 63 | 1,843 | 5,031 | 5,763 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 13 | 238 | 25 | 1,151 |
JavaScript | 6 | 230 | 271 | 847 |
Markdown | 2 | 144 | 0 | 428 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 15.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 8 | 11.27% |
▷ Concrete classes | 63 | 88.73% |
▷ Final classes | 0 | 0.00% |
Methods | 461 | |
▷ Static methods | 69 | 14.97% |
▷ Public methods | 385 | 83.51% |
▷ Protected methods | 68 | 14.75% |
▷ Private methods | 8 | 1.74% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
lib/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |