82% our-team-group

Code Review | Our Team (Group)

WordPress plugin Our Team (Group) scored 82% from 54 tests.

About plugin

  • Plugin page: our-team-group
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Jan 6, 2021
  • Latest release: Sep 24, 2021
  • Number of updates: 8
  • Update frequency: every 32.7 days
  • Top authors: vp956009 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 154 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.76MB] [CPU: ▼307.02ms] Passed 4 tests

Analyzing server-side resources used by Our Team (Group)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2096.84 ▲40.65
Dashboard /wp-admin3.59 ▲0.1840.09 ▼2.66
Posts /wp-admin/edit.php3.82 ▲0.1742.24 ▲1.14
Add New Post /wp-admin/post-new.php3.40 ▼3.5828.77 ▼1,228.37
Media Library /wp-admin/upload.php3.47 ▲0.1729.47 ▲1.82
Shortcodes /wp-admin/edit.php?post_type=team_shortcodes3.5133.16
Add New /wp-admin/post-new.php?post_type=teammember3.4031.79
Team Member /wp-admin/edit.php?post_type=teammember3.5130.40

Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Our Team (Group)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,961 ▲21716.61 ▲0.7810.24 ▲4.192.20 ▼0.01
Dashboard /wp-admin2,967 ▲1066.78 ▲0.64125.26 ▼18.36176.10 ▲11.50
Posts /wp-admin/edit.php2,766 ▲723.55 ▲0.3166.88 ▲2.29183.29 ▲39.17
Add New Post /wp-admin/post-new.php1,812 ▲5419.39 ▼1.94395.83 ▼54.64180.91 ▼35.01
Media Library /wp-admin/upload.php1,772 ▲745.75 ▲0.23140.77 ▼7.73219.31 ▼22.17
Shortcodes /wp-admin/edit.php?post_type=team_shortcodes1,4603.4966.01127.44
Add New /wp-admin/post-new.php?post_type=teammember2,5245.7394.54181.31
Team Member /wp-admin/edit.php?post_type=teammember1,4143.4765.00131.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+168
    Undefined index: octem_mo_number
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+169
    Undefined index: octem_website
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+170
    Undefined index: octem_email
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+171
    Undefined index: octem_skype
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+172
    Undefined index: octem_facebook
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+173
    Undefined index: octem_twitter
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+174
    Undefined index: octem_pinterest
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+175
    Undefined index: octem_linkedin
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+176
    Undefined index: octem_instagram
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+177
    Undefined index: octem_description
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/admin_functions.php+178
    Undefined index: octem_designation
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+377
    Undefined index: octem_layouts
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+378
    Undefined index: octem_colum
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+379
    Undefined index: octem_title
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+380
    Undefined index: octem_title_color
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+381
    Undefined index: octem_title_fontsize
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+382
    Undefined index: octem_title_position
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+383
    Undefined index: octem_title_fontweight
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+384
    Undefined index: octem_post_title_color
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+385
    Undefined index: octem_post_title_fontsize
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+386
    Undefined index: octem_post_title_position
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+387
    Undefined index: octem_post_title_fontweight
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+388
    Undefined index: octem_post_designation_color
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+389
    Undefined index: octem_post_designation_fontsize
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+390
    Undefined index: octem_post_designation_position
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+391
    Undefined index: octem_post_designation_fontweight
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+392
    Undefined index: octem_post_description_color
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+393
    Undefined index: octem_post_description_fontsize
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+394
    Undefined index: octem_post_description_position
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+395
    Undefined index: octem_post_description_fontweight
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+396
    Undefined index: octem_post_socialicon_color
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+397
    Undefined index: octem_post_socialicon_width
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+398
    Undefined index: octem_slider_colum
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+399
    Undefined index: octem_slider_autoplay
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+400
    Undefined index: octem_slider_timeout
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+401
    Undefined index: octem_slider_arrows
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+402
    Undefined index: octem_slider_mob_row
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+403
    Undefined index: octem_template
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+404
    Undefined index: octem_animation_effect
    • > GET request to /wp-admin/post-new.php?post_type=teammember
    • > Notice in wp-content/plugins/our-team-group/includes/asmin_shortcode_fuctions.php+405
    Undefined index: octem_hover_bg_color

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/our-team-group/Our-Team.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_reset_postdata() in wp-content/plugins/our-team-group/includes/grid_view.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/our-team-group/includes/teams_slider.php on line 2
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/our-team-group/includes/teams_slider.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_reset_postdata() in wp-content/plugins/our-team-group/includes/teams_slider.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Contributors not specified
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in our-team-group/assets to your readme.txt
The official readme.txt might help

our-team-group/Our-Team.php 92% from 13 tests

The main PHP file in "Our Team (Group)" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("our-team-group.php" instead of "Our-Team.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,623 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34989632,031
PHP6125341,098
CSS82257494

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
asset/owlcarousel/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%