83% rst-awesome-team-widget

Code Review | RST Awesome Team Widget

WordPress plugin RST Awesome Team Widget scored83%from 54 tests.

About plugin

  • Plugin page: rst-awesome-team-...
  • 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: Apr 22, 2022
  • Latest release: Apr 25, 2022
  • Number of updates: 16
  • Update frequency: every 0.3 days
  • Top authors: sumonrejatas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by RST Awesome Team Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.20 ▼2.79
Dashboard /wp-admin3.33 ▲0.0251.33 ▼2.94
Posts /wp-admin/edit.php3.38 ▲0.0248.90 ▼1.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.08 ▼5.46
Media Library /wp-admin/upload.php3.25 ▲0.0240.34 ▲6.57

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for RST Awesome Team Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.24 ▼0.984.42 ▲2.5640.24 ▼5.78
Dashboard /wp-admin2,224 ▲365.84 ▼0.07115.83 ▲6.3344.80 ▲4.65
Posts /wp-admin/edit.php2,109 ▲202.05 ▼0.1142.87 ▲4.0836.09 ▼0.36
Add New Post /wp-admin/post-new.php1,546 ▲2723.19 ▲0.02670.49 ▲44.4354.25 ▲5.96
Media Library /wp-admin/upload.php1,409 ▲244.22 ▲0.0099.26 ▼8.1945.80 ▼2.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please take a closer look at the following
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rst-awesome-team-widget/widgets/parts/team-style-6.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rst-awesome-team-widget/widgets/parts/team-style-1.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rst-awesome-team-widget/widgets/parts/team-style-5.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rst-awesome-team-widget/widgets/parts/team-style-9.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rst-awesome-team-widget/widgets/parts/team-style-3.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rst-awesome-team-widget/widgets/parts/team-style-10.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rst-awesome-team-widget/widgets/teams.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rst-awesome-team-widget/widgets/parts/team-style-2.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rst-awesome-team-widget/widgets/parts/team-style-7.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rst-awesome-team-widget/widgets/parts/team-style-4.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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: member widget, rst awesome team widget, elementor, rst widget

rst-awesome-team-widget/rst_team_addons.php 77% from 13 tests

The main file in "RST Awesome Team Widget" 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:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rst-awesome-team-widget.php" instead of "rst_team_addons.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected1,583 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13125272982
CSS19927599
Markdown1002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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
There are no PNG files in this plugin