84% team-section

Code Review | Team Section block - Showcase team members in various layouts and designs.

WordPress plugin Team Section block - Showcase team members in various layouts and designs. scored84%from 54 tests.

About plugin

  • Plugin page: team-section
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 22, 2022
  • Latest release: Oct 3, 2023
  • Number of updates: 25
  • Update frequency: every 23.5 days
  • Top authors: charlescormier (80%)abuhayat (24%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /3,967 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.50ms] Passed 4 tests

A check of server-side resources used by Team Section block - Showcase team members in various layouts and designs.
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.68 ▼8.70
Dashboard /wp-admin3.37 ▲0.0644.99 ▼2.44
Posts /wp-admin/edit.php3.42 ▲0.0642.70 ▼6.34
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.61 ▼4.51
Media Library /wp-admin/upload.php3.29 ▲0.0635.67 ▲0.40

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Team Section block - Showcase team members in various layouts and designs.
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.60 ▼0.962.03 ▼0.0638.82 ▼10.30
Dashboard /wp-admin2,206 ▲185.86 ▼0.04105.41 ▼4.8837.31 ▼2.64
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0333.73 ▼9.5733.61 ▼2.85
Add New Post /wp-admin/post-new.php6,356 ▲4,84228.63 ▲11.03815.33 ▲179.6751.63 ▲2.75
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.0499.26 ▲3.1643.09 ▲1.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant TSB_VERSION - assumed 'TSB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/team-section/dist/editor.asset.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-section/inc/block.php:4

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Requires at least: Invalid version format
The official readme.txt is a good inspiration

team-section/index.php 92% from 13 tests

The main PHP script in "Team Section block - Showcase team members in various layouts and designs." version 1.0.8 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("team-section.php" instead of "index.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
No dangerous file extensions were detected554 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON200352
PO File168134154
PHP3121243
CSS3063
JavaScript2022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected