10% custom-team-manager

Code Review | Custom Team Manager

WordPress plugin Custom Team Manager scored10%from 54 tests.

About plugin

  • Plugin page: custom-team-manager
  • Plugin version: 2.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2014
  • Latest release: Aug 24, 2022
  • Number of updates: 46
  • Update frequency: every 62.3 days
  • Top authors: Ibnul (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

300+ active /13,530 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/custom-team-manager/inc/functions.php+277
    Undefined index: post_type

Server metrics [RAM: ▼0.59MB] [CPU: ▼16.29ms] Passed 4 tests

Analyzing server-side resources used by Custom Team Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1847.15 ▲3.83
Dashboard /wp-admin3.48 ▲0.1854.42 ▼4.40
Posts /wp-admin/edit.php3.20 ▼0.1633.35 ▼12.92
Add New Post /wp-admin/post-new.php3.33 ▼2.5643.93 ▼51.65
Media Library /wp-admin/upload.php3.41 ▲0.1742.61 ▲9.67
Add New Member /wp-admin/post-new.php?post_type=cmt-management-team3.3340.69
All Members /wp-admin/edit.php?post_type=cmt-management-team3.4343.20
Settings /wp-admin/edit.php?post_type=cmt-management-team&page=cmt-settings-page3.3938.89
Member Categories /wp-admin/edit-tags.php?taxonomy=cmt-team-category&post_type=cmt-management-team3.4037.96

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 12 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
cmt_show_gridview
hide_ajax_notification
theysaidso_admin_options
cmt_ajax_load
cmt_mem_pro_page_slug
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by Custom Team Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲13413.23 ▼1.522.06 ▲0.1545.84 ▼0.98
Dashboard /wp-admin2,248 ▲595.91 ▲0.9797.88 ▼24.0740.27 ▼5.69
Posts /wp-admin/edit.php2,128 ▲422.07 ▲0.0735.62 ▼4.1633.46 ▲2.41
Add New Post /wp-admin/post-new.php1,556 ▲2318.15 ▼4.94664.93 ▼62.1252.63 ▼1.23
Media Library /wp-admin/upload.php1,430 ▲454.30 ▲0.0799.04 ▼1.6147.18 ▲3.61
Add New Member /wp-admin/post-new.php?post_type=cmt-management-team2,4857.73178.7368.85
All Members /wp-admin/edit.php?post_type=cmt-management-team1,1112.0032.5130.45
Settings /wp-admin/edit.php?post_type=cmt-management-team&page=cmt-settings-page1,0531.9329.1838.26
Member Categories /wp-admin/edit-tags.php?taxonomy=cmt-team-category&post_type=cmt-management-team1,2982.4328.4430.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 11 options
    • cmt_profile_page
    • cmt_show_gridview
    • db_upgraded
    • widget_theysaidso_widget
    • cmt_ajax_load
    • theysaidso_admin_options
    • can_compress_scripts
    • cmt_mem_pro_page_slug
    • cmt_single_page
    • widget_recent-comments
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=cmt-management-team
    • > Notice in wp-content/plugins/custom-team-manager/inc/functions.php+391
    Undefined index: post_type
    • > GET request to /wp-admin/post-new.php?post_type=cmt-management-team
    • > Notice in wp-content/plugins/custom-team-manager/inc/functions.php+284
    Undefined index: cmt_member_role
    • > GET request to /wp-admin/post-new.php?post_type=cmt-management-team
    • > Notice in wp-content/plugins/custom-team-manager/inc/functions.php+321
    Undefined index: cmt_member_facebook
    • > GET request to /wp-admin/post-new.php?post_type=cmt-management-team
    • > Notice in wp-content/plugins/custom-team-manager/inc/functions.php+360
    Undefined index: cmt_member_twitter
    • > GET request to /wp-admin/post-new.php?post_type=cmt-management-team
    • > Notice in wp-content/plugins/custom-team-manager/inc/functions.php+398
    Undefined index: cmt_member_linkedin

SRP 50% 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-team-manager/inc/functions.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-team-manager/inc/shortcodes.php:165
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-team-manager/inc/functions.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Team Members page view.), #2 (Team Members Profile page view.), #3 (Settings Page view.)
You can look at the official readme.txt

custom-team-manager/custom-team-manager.php 92% from 13 tests

"Custom Team Manager" version 2.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 201 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
No dangerous file extensions were detected548 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP37342294
CSS21410171
JavaScript2222783

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.68MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/linkedin.png4.00KB1.58KB▼ 60.42%
screenshot-2.png165.85KB61.30KB▼ 63.04%
screenshot-3.png48.47KB29.97KB▼ 38.18%
images/facebook.png95.41KB43.30KB▼ 54.62%
images/twitter.png39.93KB17.21KB▼ 56.90%