84% awesome-team-widgets

Code Review | Awesome Team Widgets

WordPress plugin Awesome Team Widgets scored84%from 54 tests.

About plugin

  • Plugin page: awesome-team-widgets
  • 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: Mar 16, 2022
  • Latest release: Mar 17, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: nahian91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.90ms] Passed 4 tests

Server-side resources used by Awesome Team Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.36 ▼6.33
Dashboard /wp-admin3.31 ▲0.0149.44 ▲1.67
Posts /wp-admin/edit.php3.36 ▲0.0052.66 ▲0.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.90 ▼13.80
Media Library /wp-admin/upload.php3.23 ▲0.0037.12 ▼0.08

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Awesome Team Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.26 ▼0.091.75 ▲0.1942.79 ▼2.39
Dashboard /wp-admin2,206 ▲295.64 ▼0.0288.99 ▲1.2941.78 ▲3.64
Posts /wp-admin/edit.php2,117 ▲172.16 ▲0.2137.59 ▼5.0435.59 ▼0.28
Add New Post /wp-admin/post-new.php1,538 ▲1223.41 ▲0.35646.24 ▲41.0257.47 ▲6.33
Media Library /wp-admin/upload.php1,414 ▲204.18 ▼0.0397.43 ▼3.0044.78 ▲2.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/awesome-team-widgets/widgets/teams.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/awesome-team-widgets/widgets/parts/team-style-5.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/awesome-team-widgets/widgets/parts/team-style-8.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/awesome-team-widgets/widgets/parts/team-style-4.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/awesome-team-widgets/widgets/parts/team-style-7.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/awesome-team-widgets/widgets/parts/team-style-3.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/awesome-team-widgets/widgets/parts/team-style-9.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/awesome-team-widgets/widgets/parts/team-style-2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/awesome-team-widgets/widgets/parts/team-style-10.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/awesome-team-widgets/widgets/parts/team-style-1.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: elementor, member widget, team widget

awesome-team-widgets/awesome-team-common.php 85% from 13 tests

The main file in "Awesome Team Widgets" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awesome-team-widgets.php" instead of "awesome-team-common.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,582 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13124272981
CSS19927599
Markdown1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity9.50
▷ Minimum class complexity8.00
▷ Maximum class complexity11.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin