10% amazing-team-member-carousel

Code Review | Amazing Team Member Carousel

WordPress plugin Amazing Team Member Carousel scored10%from 54 tests.

About plugin

  • Plugin page: amazing-team-memb...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 1, 2014
  • Latest release: Nov 22, 2014
  • Number of updates: 9
  • Update frequency: every 5.7 days
  • Top authors: noor-e-alam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,849 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/amazing-team-member-carousel/framework/includes/wpalchemy/MetaBox.php+61
    Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor

Server metrics [RAM: ▼1.39MB] [CPU: ▼55.80ms] Passed 4 tests

This is a short check of server-side resources used by Amazing Team Member Carousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.61 ▼0.858.04 ▼36.82
Dashboard /wp-admin2.63 ▼0.7210.07 ▼57.90
Posts /wp-admin/edit.php2.63 ▼0.7310.21 ▼42.27
Add New Post /wp-admin/post-new.php2.63 ▼3.269.99 ▼86.20
Media Library /wp-admin/upload.php2.63 ▼0.6011.21 ▼21.71
Team Members /wp-admin/edit.php?post_type=ateam-member2.6310.23
Add New /wp-admin/post-new.php?post_type=ateam-member2.6310.24
Team Members Category /wp-admin/edit-tags.php?taxonomy=ateam_member_cat&post_type=ateam-member2.6311.54

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 208 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Amazing Team Member Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18213.62 ▼0.778.16 ▲6.3635.96 ▼2.84
Dashboard /wp-admin2,222 ▲455.58 ▲0.0484.73 ▼12.0643.39 ▲0.62
Posts /wp-admin/edit.php2,136 ▲332.00 ▲0.0338.14 ▲1.3639.08 ▲3.59
Add New Post /wp-admin/post-new.php1,564 ▲3823.08 ▼0.18640.20 ▼29.5166.49 ▲11.46
Media Library /wp-admin/upload.php1,436 ▲334.25 ▲0.0798.21 ▼4.7644.12 ▼0.70
Team Members /wp-admin/edit.php?post_type=ateam-member1,1141.9731.8430.81
Add New /wp-admin/post-new.php?post_type=ateam-member2,4333.8473.0088.91
Team Members Category /wp-admin/edit-tags.php?taxonomy=ateam_member_cat&post_type=ateam-member1,3072.1226.9630.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/amazing-team-member-carousel/framework/includes/wpalchemy/MetaBox.php+61
    Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=ateam_member_cat&post_type=ateam-member
    • > Deprecated in wp-content/plugins/amazing-team-member-carousel/framework/includes/wpalchemy/MetaBox.php+61
    Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ateam-member
    • > Warning in wp-content/plugins/amazing-team-member-carousel/framework/includes/wpalchemy/MetaBox.php+2657
    count(): Parameter must be an array or an object that implements Countable

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
Please fix the following
  • 117× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/amazing-team-member-carousel/framework/classes/control/field/select.php:3
    • > PHP Warning
      Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/amazing-team-member-carousel/framework/config/dependencies.php on line 27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/amazing-team-member-carousel/admin/metabox/settings.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'VP_View' not found in wp-content/plugins/amazing-team-member-carousel/framework/views/control/checkimage.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-team-member-carousel/framework/includes/wpalchemy/MetaBox.php:22
    • > PHP Notice
      Undefined variable: is_compact in wp-content/plugins/amazing-team-member-carousel/framework/views/control/slider.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'VP_View' not found in wp-content/plugins/amazing-team-member-carousel/framework/views/control/fontawesome.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/amazing-team-member-carousel/framework/classes/control/field/toggle.php:3
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/amazing-team-member-carousel/framework/views/control/notebox.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'VP_View' not found in wp-content/plugins/amazing-team-member-carousel/framework/views/control/toggle.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=ateam-member
    • > Javascript (severe) in unknown
    /wp-content/plugins/amazing-team-member-carousel/framework/public/js/vendor/jquery.tipsy.js?ver=1.0.0a 179:24 Uncaught TypeError: this[binder] is not a function
    • > GET request to /wp-admin/post-new.php?post_type=ateam-member
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: vp.init_ace_editor is not a function" "TypeError: vp.init_ace_editor is not a function\n at vp.init_controls (/wp-content/plugins/amazing-team-member-carousel/framework/public/js/shared.min.js?ver=1.1:1:18433)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/amazing-team-member-carousel/framework/public/js/metabox.min.js?ver=6.3.1:1:975)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:1594)\n at e (/wp-content/plugins/amazing-team-member-carousel/framework/public/js/metabox.min.js?ver=6.3.1:1:915)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/amazing-team-member-carousel/framework/public/js/metabox.min.js?ver=6.3.1:1:2532)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=ateam-member
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: vp.init_ace_editor is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: modern team member wp, team member, responsive, unlimited colors, carousel...

amazing-team-member-carousel/amazing-team-member-carousel.php 92% from 13 tests

The principal PHP file in "Amazing Team Member Carousel" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 175 characters long)

Code Analysis 97% from 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 detected17,710 lines of code in 167 files:
LanguageFilesBlank linesComment linesLines of code
PHP922,0982,3208,838
JavaScript516613184,485
CSS192442033,784
SVG100414
PO File1404799
Markdown231089
JSON1001

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 102)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.38
▷ Minimum class complexity1.00
▷ Maximum class complexity271.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes56
▷ Abstract classes47.14%
▷ Concrete classes5292.86%
▷ Final classes00.00%
Methods505
▷ Static methods8917.62%
▷ Public methods47293.47%
▷ Protected methods193.76%
▷ Private methods142.77%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants40
▷ Global constants3792.50%
▷ Class constants37.50%
▷ Public constants3100.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
22 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
framework/public/img/bootstrap-colorpicker/hue.png2.90KB0.50KB▼ 82.71%
framework/public/img/vp-logo.png1.94KB0.66KB▼ 65.94%
framework/public/img/vp_shortcode_icon.png1.13KB0.18KB▼ 84.22%
framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%