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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.53MB] [CPU: ▼3.52ms] Passed 4 tests
An overview of server-side resources used by Team View
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 40.78 ▼2.83 |
Dashboard /wp-admin | 3.88 ▲0.58 | 52.15 ▼0.17 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 55.09 ▲6.67 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 86.93 ▼14.39 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 40.78 ▲3.30 |
Add New /wp-admin/post-new.php?post_type=tv_member | 4.08 | 63.95 |
All Team Members /wp-admin/edit.php?post_type=tv_member | 3.85 | 41.73 |
Server storage [IO: ▲2.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 137 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_team-view-grid |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Team View: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲179 | 13.81 ▼0.55 | 8.59 ▲6.85 | 42.66 ▼1.52 |
Dashboard /wp-admin | 2,236 ▲56 | 5.68 ▲0.07 | 86.96 ▼15.53 | 38.93 ▼3.13 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.06 ▲0.04 | 42.13 ▲1.04 | 36.50 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.30 ▲0.31 | 690.89 ▼5.17 | 67.51 ▲14.87 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.26 ▲0.03 | 97.47 ▼18.97 | 42.76 ▼6.50 |
Add New /wp-admin/post-new.php?post_type=tv_member | 1,812 | 3.80 | 81.35 | 33.65 |
All Team Members /wp-admin/edit.php?post_type=tv_member | 1,102 | 1.96 | 32.51 | 29.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_team-view-grid
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /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× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > 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: Call to undefined function add_action() in wp-content/plugins/team-view/includes/widgets.php:24
- > 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_Multi_Base' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/team-view/lib/cmb2/includes/types/CMB2_Type_Title.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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Adding team members), #2 (Display team members)
team-view/team-view.php Passed 13 tests
"Team View" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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
No dangerous file extensions were detected17,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
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
PNG files should be compressed to save space and 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_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
lib/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
lib/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |