78% widgetmax-for-elementor

Code Review | Widgetmax

WordPress plugin Widgetmax scored78%from 54 tests.

About plugin

  • Plugin page: widgetmax-for-ele...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: May 29, 2021
  • Latest release: Jun 2, 2021
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: msakib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /314 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Widgetmax
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.21 ▼2.57
Dashboard /wp-admin3.31 ▲0.0144.81 ▼0.62
Posts /wp-admin/edit.php3.36 ▲0.0047.17 ▲4.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.35 ▲2.41
Media Library /wp-admin/upload.php3.23 ▲0.0031.89 ▲0.40

Server storage [IO: ▲0.77MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Widgetmax
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.75 ▲0.551.69 ▲0.1539.97 ▲0.43
Dashboard /wp-admin2,224 ▲365.03 ▲0.12112.71 ▲7.5142.69 ▼1.68
Posts /wp-admin/edit.php2,106 ▲172.01 ▼0.0340.31 ▲5.1736.18 ▼0.63
Add New Post /wp-admin/post-new.php1,550 ▲3623.51 ▲5.83586.69 ▼20.9853.92 ▼0.29
Media Library /wp-admin/upload.php1,406 ▲184.23 ▲0.0198.90 ▼1.2243.78 ▲1.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/widgetmax-for-elementor/widgets/hello.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/widgetmax-for-elementor/widgets/Progresbar/widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: widget, elementor, elementor widget, elementor addons, elementor addon

widgetmax-for-elementor/widgetmax.php 85% from 13 tests

Analyzing the main PHP file in "Widgetmax" version 1.0
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("widgetmax-for-elementor.php" instead of "widgetmax.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected9,454 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP138887646,010
CSS3371452,890
SVG100362
JavaScript54239192

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity27.40
▷ Minimum class complexity6.00
▷ Maximum class complexity165.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods104
▷ Static methods21.92%
▷ Public methods5956.73%
▷ Protected methods4341.35%
▷ Private methods21.92%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin