84% startklar-elmentor-forms-extwidgets

Code Review | Startklar Elementor Addons

WordPress plugin Startklar Elementor Addons scored84%from 54 tests.

About plugin

  • Plugin page: startklar-elmento...
  • Plugin version: 1.7.7
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jan 19, 2022
  • Latest release: Oct 2, 2023
  • Number of updates: 45
  • Update frequency: every 13.8 days
  • Top authors: wshberlin (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /8,114 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Startklar Elementor Addons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.30 ▼3.03
Dashboard /wp-admin3.31 ▲0.0048.39 ▼4.76
Posts /wp-admin/edit.php3.36 ▲0.0051.40 ▲2.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.15 ▼14.63
Media Library /wp-admin/upload.php3.23 ▲0.0036.32 ▼0.73

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Startklar Elementor Addons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.09 ▼0.082.02 ▼0.0241.54 ▼3.30
Dashboard /wp-admin2,198 ▲215.69 ▲0.0487.29 ▼0.0741.91 ▼3.21
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0538.81 ▲5.2635.13 ▲2.08
Add New Post /wp-admin/post-new.php1,526 ▼023.61 ▲0.10682.80 ▲24.1154.26 ▲1.75
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0697.04 ▼9.1542.63 ▼4.44

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function StartklarElmentorFormsExtWidgets\\register_activation_hook() in wp-content/plugins/startklar-elmentor-forms-extwidgets/startklar-elmentor-forms-extwidgets.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: dropzone, honeypot, country code

startklar-elmentor-forms-extwidgets/startklar-elmentor-forms-extwidgets.php Passed 13 tests

The primary PHP file in "Startklar Elementor Addons" version 1.7.7 is used by WordPress to initiate all plugin functionality
108 characters long description:
Plugin adds additional fields like country code selector, Advanced Honeypot and DropZone to Elementor Forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected28,865 lines of code in 264 files:
LanguageFilesBlank linesComment linesLines of code
SVG241253518,867
JavaScript41,8921,1147,440
PHP133403861,510
PO File12597535
CSS420512
JSON1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.08
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods68
▷ Static methods57.35%
▷ Public methods4566.18%
▷ Protected methods00.00%
▷ Private methods2333.82%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
startklar_logo.png2.19KB0.92KB▼ 57.70%