83% extra-team-widget

Code Review | Extra Team Widget

WordPress plugin Extra Team Widget scored83%from 54 tests.

About plugin

  • Plugin page: extra-team-widget
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 8, 2022
  • Latest release: Aug 9, 2022
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: extraaddons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /198 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.51ms] Passed 4 tests

A check of server-side resources used by Extra Team Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.65 ▼4.45
Dashboard /wp-admin3.33 ▲0.0241.67 ▼2.47
Posts /wp-admin/edit.php3.38 ▲0.0244.53 ▼4.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.97 ▼18.57
Media Library /wp-admin/upload.php3.25 ▲0.0235.35 ▼1.29

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Extra Team Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.66 ▲0.451.61 ▼0.1341.94 ▼2.89
Dashboard /wp-admin2,203 ▲265.51 ▼0.1594.45 ▲2.1039.77 ▼0.37
Posts /wp-admin/edit.php2,120 ▲412.00 ▲0.0042.37 ▲6.4037.33 ▲4.96
Add New Post /wp-admin/post-new.php1,538 ▲923.51 ▲0.22624.89 ▲8.7949.30 ▼17.12
Media Library /wp-admin/upload.php1,411 ▲84.16 ▲0.0096.54 ▲0.2748.21 ▲0.96

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/extra-team-widget/widgets/parts/team-style-3.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/extra-team-widget/widgets/parts/team-style-4.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/extra-team-widget/widgets/parts/team-style-5.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/extra-team-widget/widgets/eleteams.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/extra-team-widget/widgets/parts/team-style-1.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/extra-team-widget/widgets/parts/team-style-6.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/extra-team-widget/widgets/parts/team-style-2.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Team Style 1), #2 (Team Style 2), #3 (Team Style 3), #4 (Team Style 4), #5 (Team Style 5), #6 (Team Style 6)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

extra-team-widget/extra-team-widget.php 92% from 13 tests

The main PHP script in "Extra Team Widget" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin10,875 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
CSS48725673
PHP9124237648
Markdown1002

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.15
Average class complexity7.50
▷ Minimum class complexity7.00
▷ Maximum class complexity8.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods17
▷ Static methods15.88%
▷ Public methods1588.24%
▷ Protected methods211.76%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin