83% simple-team-widget

Code Review | Simple Team Widgets

WordPress plugin Simple Team Widgets scored83%from 54 tests.

About plugin

  • Plugin page: simple-team-widget
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: May 25, 2022
  • Latest release: May 25, 2022
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: jihadbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /177 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.78ms] Passed 4 tests

This is a short check of server-side resources used by Simple Team Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.50 ▼6.01
Dashboard /wp-admin3.33 ▲0.0348.48 ▼4.75
Posts /wp-admin/edit.php3.38 ▲0.0349.98 ▲4.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.09 ▲0.73
Media Library /wp-admin/upload.php3.25 ▲0.0334.56 ▼1.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Simple Team Widgets: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6113.24 ▼1.381.66 ▼0.6542.88 ▼5.74
Dashboard /wp-admin2,227 ▲425.91 ▲0.0194.22 ▼4.8939.67 ▲1.16
Posts /wp-admin/edit.php2,106 ▲142.02 ▼0.0041.13 ▲6.0137.48 ▲5.90
Add New Post /wp-admin/post-new.php1,546 ▲3223.43 ▲5.90649.93 ▼31.1352.87 ▼4.67
Media Library /wp-admin/upload.php1,409 ▲214.27 ▲0.0696.13 ▼11.9943.59 ▼4.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/simple-team-widget/widgets/parts/team-style6.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/simple-team-widget/widgets/parts/team-style1.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/simple-team-widget/widgets/parts/team-style4.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/simple-team-widget/widgets/parts/team-style5.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/simple-team-widget/widgets/parts/team-style3.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/simple-team-widget/widgets/team.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/simple-team-widget/widgets/parts/team-style2.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Team Style 1), #2 (Team Style 2), #3 (Team Style 3), #4 (Team Style 4), #5 (Team Style 5), #6 (Team Style 6)
The official readme.txt might help

simple-team-widget/simple-team-addon.php 77% from 13 tests

The primary PHP file in "Simple Team Widgets" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-team-widget.php" instead of "simple-team-addon.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected23,284 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS33,2754012,896
SVG3009,552
PHP8150160836

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.50
▷ Minimum class complexity7.00
▷ Maximum class complexity8.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods20
▷ Static methods15.00%
▷ Public methods1890.00%
▷ Protected methods210.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 4.25MB with 3.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-2.png867.72KB203.82KB▼ 76.51%
assets/images/screenshot-5.png789.28KB189.74KB▼ 75.96%
assets/images/banner-772x250.png112.01KB33.02KB▼ 70.52%
assets/images/screenshot-1.png891.62KB208.23KB▼ 76.65%
assets/images/screenshot-4.png366.14KB90.09KB▼ 75.39%