78% employee-spotlight

Code Review | Team Member Showcase Staff List Plugin - Employee Spotlight

WordPress plugin Team Member Showcase Staff List Plugin - Employee Spotlight scored78%from 54 tests.

About plugin

  • Plugin page: employee-spotlight
  • Plugin version: 4.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2015
  • Latest release: Jun 29, 2023
  • Number of updates: 120
  • Update frequency: every 25.0 days
  • Top authors: emarket-design (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

800+ active /46,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.42MB] [CPU: ▼2.02ms] Passed 4 tests

An overview of server-side resources used by Team Member Showcase Staff List Plugin - Employee Spotlight
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3744.09 ▼0.40
Dashboard /wp-admin3.79 ▲0.4549.95 ▼8.61
Posts /wp-admin/edit.php3.86 ▲0.5157.37 ▲13.05
Add New Post /wp-admin/post-new.php6.34 ▲0.4589.39 ▼9.16
Media Library /wp-admin/upload.php3.65 ▲0.4243.83 ▲10.08
Groups /wp-admin/edit-tags.php?taxonomy=groups&post_type=emd_employee3.8041.94
Add New /wp-admin/post-new.php?post_type=emd_employee3.8655.21
Employee Tags /wp-admin/edit-tags.php?taxonomy=employee_tags&post_type=emd_employee3.6442.30
Locations /wp-admin/edit-tags.php?taxonomy=office_locations&post_type=emd_employee3.6439.93
Settings /wp-admin/admin.php?page=employee_spotlight_settings3.6543.59
All Employees /wp-admin/edit.php?post_type=emd_employee3.7140.86
Custom Fields /wp-admin/admin.php?page=employee_spotlight_cust_fields3.6236.77
Support /wp-admin/admin.php?page=employee_spotlight_support3.6838.45
Glossary /wp-admin/admin.php?page=employee_spotlight_glossary3.6237.26
Plugins /wp-admin/admin.php?page=employee_spotlight_store3.6935.39

Server storage [IO: ▲3.14MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 257 new files
Database: no new tables, 22 new options
New WordPress options
empslight_com_vcard_field_list
theysaidso_admin_options
widget_employee_spotlight_featured_employees_widget
employee_spotlight_tax_list
employee_spotlight_cust_roles
db_upgraded
widget_theysaidso_widget
employee_spotlight_version
employee_spotlight_setup_pages
widget_employee_spotlight_recent_employees_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Team Member Showcase Staff List Plugin - Employee Spotlight
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲21713.19 ▼1.121.85 ▼0.3036.78 ▼5.66
Dashboard /wp-admin2,386 ▲1985.87 ▲0.06100.87 ▼15.5749.53 ▲2.87
Posts /wp-admin/edit.php2,271 ▲1792.15 ▲0.1540.82 ▲3.8143.16 ▲10.76
Add New Post /wp-admin/post-new.php1,747 ▲21122.69 ▼0.64670.34 ▲29.1871.25 ▼0.53
Media Library /wp-admin/upload.php1,581 ▲1994.28 ▲0.1298.42 ▼1.2646.91 ▲4.51
Groups /wp-admin/edit-tags.php?taxonomy=groups&post_type=emd_employee1,4142.3230.1538.73
Add New /wp-admin/post-new.php?post_type=emd_employee2,8487.73189.0880.38
Employee Tags /wp-admin/edit-tags.php?taxonomy=employee_tags&post_type=emd_employee1,4172.3229.3637.99
Locations /wp-admin/edit-tags.php?taxonomy=office_locations&post_type=emd_employee1,4142.3229.3238.09
Settings /wp-admin/admin.php?page=employee_spotlight_settings2,1332.7036.2539.76
All Employees /wp-admin/edit.php?post_type=emd_employee1,3042.3433.3733.24
Custom Fields /wp-admin/admin.php?page=employee_spotlight_cust_fields1,0521.7126.2841.05
Support /wp-admin/admin.php?page=employee_spotlight_support1,2711.8424.0944.90
Glossary /wp-admin/admin.php?page=employee_spotlight_glossary1,1891.8224.6935.70
Plugins /wp-admin/admin.php?page=employee_spotlight_store1,2961.8725.2139.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 19 options in the database
    • employee_spotlight_setup_pages
    • employee_spotlight_activation_date
    • employee_spotlight_add_caps
    • employee_spotlight_glob_init_list
    • employee_spotlight_tax_list
    • db_upgraded
    • widget_employee_spotlight_featured_employees_widget
    • employee_spotlight_cust_roles
    • emd_activated_plugins
    • employee_spotlight_version
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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 fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/employee-spotlight/layouts/shc-employee-circle-panel-grid-footer.php
    • > /wp-content/plugins/employee-spotlight/layouts/shc-employee-circle-grid-header.php
    • > /wp-content/plugins/employee-spotlight/layouts/shc-employee-circle-panel-grid-header.php
    • > /wp-content/plugins/employee-spotlight/layouts/shc-employee-circle-grid-footer.php
  • 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/employee-spotlight/layouts/shc-employee-circle-grid-content.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/employee-spotlight/layouts/archive-emd-employee.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/employee-spotlight/layouts/widget-recent-employees-content.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EMD_MB_Field' not found in wp-content/plugins/employee-spotlight/assets/ext/emd-meta-box/inc/fields/file-input.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/employee-spotlight/includes/admin/tabs.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/employee-spotlight/includes/admin/plugin-support.php:48
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/employee-spotlight/layouts/taxonomy-groups-emd-employee.php on line 1
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/employee-spotlight/layouts/widget-recent-employees-content.php on line 1
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/employee-spotlight/layouts/taxonomy-employee-tags-emd-employee.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/employee-spotlight/includes/admin/shortcode-list-functions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: team, staff list, team members, staff, meet the team

employee-spotlight/employee-spotlight.php 92% from 13 tests

The main PHP script in "Team Member Showcase Staff List Plugin - Employee Spotlight" version 4.9.8 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected22,207 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
PHP926092,96213,508
JavaScript434025273,598
SVG1002,671
CSS341161162,430

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 code0.49
Average class complexity19.81
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes53
▷ Abstract classes00.00%
▷ Concrete classes53100.00%
▷ Final classes11.89%
Methods283
▷ Static methods19970.32%
▷ Public methods27296.11%
▷ Protected methods62.12%
▷ Private methods51.77%
Functions113
▷ Named functions11299.12%
▷ Anonymous functions10.88%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
66 compressed PNG files occupy 0.64MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/megaphone.png1.42KB1.46KB0.00%
assets/img/csv-impexp.png2.57KB2.63KB0.00%
assets/img/dd.png3.22KB3.31KB0.00%
assets/img/addons/wordpress_development728x190_rsgwjn.png39.52KB39.57KB0.00%
assets/img/jui-img/ui-bg_glass_65_ffffff_1x400.png0.09KB0.10KB0.00%