83% adl-team

Code Review | Team

WordPress plugin Team scored 83% from 54 tests.

About plugin

  • Plugin page: adl-team
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.8.1
  • First release: Nov 9, 2016
  • Latest release: Jun 15, 2021
  • Number of updates: 27
  • Update frequency: every 62.1 days
  • Top authors: aazztech (55.56%)AdlPlugins (37.04%)armanul94 (14.81%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 15,479 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼136.92ms] Passed 4 tests

Analyzing server-side resources used by Team
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.15 ▲0.3140.39 ▲10.65
Dashboard /wp-admin3.45 ▲0.3844.01 ▲1.73
Posts /wp-admin/edit.php3.49 ▲0.3845.45 ▲10.97
Add New Post /wp-admin/post-new.php5.75 ▲0.3183.62 ▼569.32
Media Library /wp-admin/upload.php3.33 ▲0.3235.76 ▲9.25
Designations /wp-admin/edit-tags.php?taxonomy=adl-team-designation&post_type=adl-team3.3335.78
Shortcode Generator /wp-admin/edit.php?post_type=adl-team-shortcode3.4743.26
Add New Member /wp-admin/post-new.php?post_type=adl-team3.4545.44
All Members /wp-admin/edit.php?post_type=adl-team3.4748.02
Team Slug Settings /wp-admin/edit.php?post_type=adl-team&page=adl-team-settings3.3131.30
Usage & Support /wp-admin/edit.php?post_type=adl-team&page=usage3.3439.42

Server storage [IO: ▲1.37MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Team
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,757 ▲15615.92 ▲0.225.62 ▼0.1379.73 ▲5.63
Dashboard /wp-admin2,988 ▲926.12 ▼0.06115.59 ▼14.77167.67 ▼3.38
Posts /wp-admin/edit.php2,802 ▲623.23 ▼0.0165.05 ▲1.79141.96 ▲1.02
Add New Post /wp-admin/post-new.php3,845 ▲11518.54 ▲3.28420.11 ▼11.61161.16 ▼1.13
Media Library /wp-admin/upload.php1,807 ▲555.49 ▼0.05143.56 ▼1.68188.21 ▲5.01
Designations /wp-admin/edit-tags.php?taxonomy=adl-team-designation&post_type=adl-team1,8102.7857.57127.59
Shortcode Generator /wp-admin/edit.php?post_type=adl-team-shortcode1,7805.0283.49113.73
Add New Member /wp-admin/post-new.php?post_type=adl-team4,80712.01231.13240.63
All Members /wp-admin/edit.php?post_type=adl-team1,7745.0378.07112.05
Team Slug Settings /wp-admin/edit.php?post_type=adl-team&page=adl-team-settings1,4365.1173.48145.46
Usage & Support /wp-admin/edit.php?post_type=adl-team&page=usage1,6085.1473.28125.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=adl-team
    • > Notice in wp-content/plugins/adl-team/includes/classes/ADL_team_metabox.php+103
    Undefined index: _member_image_id
    • > GET request to /wp-admin/post-new.php?post_type=adl-team
    • > Notice in wp-content/plugins/adl-team/includes/classes/ADL_team_metabox.php+104
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/edit.php?post_type=adl-team&page=adl-team-settings
    • > Notice in wp-content/plugins/adl-team/includes/classes/ADL_team_settings.php+25
    Undefined index: success

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
Almost there! Just fix the following items
  • 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/adl-team/views/themes/style1/partials/style.php
    • > /wp-content/plugins/adl-team/includes/classes/ADL_team_helper.php
    • > /wp-content/plugins/adl-team/libs/Aq_Resize.php
    • > /wp-content/plugins/adl-team/views/themes/style4/partials/style.php
    • > /wp-content/plugins/adl-team/Main.php
    • > /wp-content/plugins/adl-team/views/upgrade-notice.php
    • > /wp-content/plugins/adl-team/includes/classes/ADL_team_custom_post.php
    • > /wp-content/plugins/adl-team/adl-team.php
    • > /wp-content/plugins/adl-team/views/ajax/skill.php
    • > /wp-content/plugins/adl-team/includes/classes/ADL_team_ajax_handler.php
  • 115× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: ADL_team in wp-content/plugins/adl-team/views/ajax/social.php on line 8
    • > PHP Notice
      Array to string conversion in wp-content/plugins/adl-team/views/ajax/social.php on line 5
    • > PHP Notice
      Undefined variable: themeID in wp-content/plugins/adl-team/views/themes/style4/partials/style.php on line 7
    • > PHP Notice
      Undefined variable: themeID in wp-content/plugins/adl-team/views/themes/style1/partials/style.php on line 13
    • > PHP Warning
      array_key_exists() expects parameter 2 to be array, unknown given in wp-content/plugins/adl-team/views/meta-shortcode/partials/select-theme.php on line 2
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/adl-team/views/themes/style1/index.php on line 3
    • > PHP Notice
      Undefined variable: themeID in wp-content/plugins/adl-team/views/themes/style1/partials/style.php on line 36
    • > PHP Notice
      Array to string conversion in wp-content/plugins/adl-team/views/ajax/skill.php on line 9
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/adl-team/views/meta-team/general.php on line 6
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/adl-team/views/themes/style1/partials/member.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: team profile, team, meet the team, team showcase, teams...

adl-team/adl-team.php 92% from 13 tests

The entry point to "Team" version 1.2.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 297 characters long)

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
There were no executable files found in this plugin6,204 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP345544242,417
CSS103711182,164
JavaScript6205251926
SVG200697

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity13.09
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods68
▷ Static methods11.47%
▷ Public methods6291.18%
▷ Protected methods11.47%
▷ Private methods57.35%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.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
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
admin/assets/img/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
public/assets/img/plus-sign.png1.08KB0.14KB▼ 86.92%
admin/assets/img/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
admin/assets/img/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%