78% team-view

Code Review | Team View

WordPress plugin Team View scored78%from 54 tests.

About plugin

  • Plugin page: team-view
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2017
  • Latest release: Aug 24, 2022
  • Number of updates: 8
  • Update frequency: every 250.1 days
  • Top authors: wenthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /33,329 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4240.78 ▼2.83
Dashboard /wp-admin3.88 ▲0.5852.15 ▼0.17
Posts /wp-admin/edit.php3.90 ▲0.5455.09 ▲6.67
Add New Post /wp-admin/post-new.php6.47 ▲0.5986.93 ▼14.39
Media Library /wp-admin/upload.php3.80 ▲0.5740.78 ▲3.30
Add New /wp-admin/post-new.php?post_type=tv_member4.0863.95
All Team Members /wp-admin/edit.php?post_type=tv_member3.8541.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17913.81 ▼0.558.59 ▲6.8542.66 ▼1.52
Dashboard /wp-admin2,236 ▲565.68 ▲0.0786.96 ▼15.5338.93 ▼3.13
Posts /wp-admin/edit.php2,138 ▲352.06 ▲0.0442.13 ▲1.0436.50 ▲0.55
Add New Post /wp-admin/post-new.php1,556 ▲2823.30 ▲0.31690.89 ▼5.1767.51 ▲14.87
Media Library /wp-admin/upload.php1,438 ▲414.26 ▲0.0397.47 ▼18.9742.76 ▼6.50
Add New /wp-admin/post-new.php?post_type=tv_member1,8123.8081.3533.65
All Team Members /wp-admin/edit.php?post_type=tv_member1,1021.9632.5129.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

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)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS181,0901,0557,123
PHP631,8435,0315,763
SVG1002,671
Sass13238251,151
JavaScript6230271847
Markdown21440428

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 code0.48
Average class complexity15.01
▷ Minimum class complexity1.00
▷ Maximum class complexity141.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes71
▷ Abstract classes811.27%
▷ Concrete classes6388.73%
▷ Final classes00.00%
Methods461
▷ Static methods6914.97%
▷ Public methods38583.51%
▷ Protected methods6814.75%
▷ Private methods81.74%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants857.14%
▷ Class constants642.86%
▷ Public constants6100.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
FileSize - originalSize - compressedSavings
lib/cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
lib/cmb2/images/ico-delete.png0.70KB0.72KB0.00%
lib/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
lib/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%