77% webiots-teamshowcase

Code Review | Webiots Team Showcase and slider

WordPress plugin Webiots Team Showcase and slider scored77%from 54 tests.

About plugin

  • Plugin page: webiots-teamshowcase
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.31+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: Oct 23, 2017
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: webiots (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /566 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼10.17ms] Passed 4 tests

An overview of server-side resources used by Webiots Team Showcase and slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1044.33 ▼0.55
Dashboard /wp-admin3.40 ▲0.0553.64 ▼19.94
Posts /wp-admin/edit.php3.45 ▲0.0953.14 ▲3.07
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.34 ▼19.11
Media Library /wp-admin/upload.php3.32 ▲0.0938.18 ▼1.07
Add New Team Member /wp-admin/post-new.php?post_type=app_teamshowcase3.3953.82
Deparment /wp-admin/edit-tags.php?taxonomy=team-department&post_type=app_teamshowcase3.3138.81
All Team Members /wp-admin/edit.php?post_type=app_teamshowcase3.3742.33

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Webiots Team Showcase and slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18513.53 ▼1.0310.55 ▲8.7342.21 ▼3.76
Dashboard /wp-admin2,231 ▲545.62 ▲0.0288.30 ▼12.0739.04 ▼6.38
Posts /wp-admin/edit.php2,133 ▲332.02 ▼0.0737.08 ▲3.4430.06 ▼7.50
Add New Post /wp-admin/post-new.php1,554 ▲2823.02 ▼0.65676.35 ▼21.0258.04 ▲2.38
Media Library /wp-admin/upload.php1,433 ▲334.21 ▼0.0595.92 ▼2.9840.66 ▼7.50
Add New Team Member /wp-admin/post-new.php?post_type=app_teamshowcase1,8343.5665.0940.18
Deparment /wp-admin/edit-tags.php?taxonomy=team-department&post_type=app_teamshowcase1,3102.1226.1529.83
All Team Members /wp-admin/edit.php?post_type=app_teamshowcase1,1241.9631.6931.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webiots-teamshowcase/includes/functions.php:16
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/webiots-teamshowcase/templates/slider/slide3.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/webiots-teamshowcase/templates/slider/slide2.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/webiots-teamshowcase/templates/slider/slide1.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/webiots-teamshowcase/templates/slider/slide3.php:7
    • > PHP Notice
      Undefined variable: loop in wp-content/plugins/webiots-teamshowcase/templates/slider/slide2.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webiots-teamshowcase/includes/functions.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=app_teamshowcase
    • > Network (severe)
    wp-content/plugins/webiots-teamshowcase/assets/css/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=app_teamshowcase
    • > Network (severe)
    wp-content/plugins/webiots-teamshowcase/includes//js/admin.js?ver=1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% 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 require attention:
  • Screenshots: Please add images for these screenshots: #1 (grid layout), #2 (gridfilter layout), #3 (carousel layout)
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

webiots-teamshowcase/teamshowcase.php 85% from 13 tests

The entry point to "Webiots Team Showcase and slider" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webiots-teamshowcase.php" instead of "teamshowcase.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,367 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24769101,938
CSS42615995
PHP610561434

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected