78% stratum

Code Review | Stratum - Elementor Widgets

WordPress plugin Stratum - Elementor Widgets scored78%from 54 tests.

About plugin

  • Plugin page: stratum
  • Plugin version: 1.3.15
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2020
  • Latest release: May 24, 2023
  • Number of updates: 60
  • Update frequency: every 19.8 days
  • Top authors: MotoPress (53.33%)jetmonsters (26.67%)endzevich (23.33%)

Code review

54 tests

User reviews

8 reviews

Install metrics

20,000+ active /164,353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.21ms] Passed 4 tests

This is a short check of server-side resources used by Stratum - Elementor Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.77 ▼6.34
Dashboard /wp-admin3.47 ▲0.1752.39 ▲1.03
Posts /wp-admin/edit.php3.59 ▲0.2356.87 ▲9.69
Add New Post /wp-admin/post-new.php6.04 ▲0.1584.26 ▼9.10
Media Library /wp-admin/upload.php3.37 ▲0.1436.12 ▲1.57
Go Premium /wp-admin/admin.php?page=stratum-premium3.3735.36
Settings /wp-admin/admin.php?page=stratum-settings3.3736.93
Stratum /wp-admin/admin.php?page=stratum3.3736.47

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Stratum - Elementor Widgets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,055 ▲28415.02 ▲0.432.32 ▲0.3141.48 ▼3.31
Dashboard /wp-admin2,439 ▲2656.62 ▲1.70136.79 ▲30.9645.04 ▲0.62
Posts /wp-admin/edit.php2,345 ▲2563.59 ▲1.5756.35 ▲18.3236.08 ▼0.03
Add New Post /wp-admin/post-new.php1,558 ▲3823.29 ▲0.11555.67 ▼123.4533.26 ▼16.72
Media Library /wp-admin/upload.php1,484 ▲934.33 ▲0.1986.76 ▼13.1642.89 ▼0.92
Go Premium /wp-admin/admin.php?page=stratum-premium1,0453.2545.7124.98
Settings /wp-admin/admin.php?page=stratum-settings2,1294.3686.8948.59
Stratum /wp-admin/admin.php?page=stratum1,4113.2341.9982.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • stratum_db_version
    • stratum_db_version_history
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/stratum/includes/templates/circle-progress-bar.php
  • 63× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/stratum/includes/templates/counter.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/stratum/includes/templates/horizontal-timeline.php on line 5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/stratum/includes/templates/horizontal-timeline.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/stratum/includes/templates/content-switcher.php:5
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/stratum/includes/templates/circle-progress-bar.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/stratum/includes/templates/price-table.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/stratum/includes/templates/vertical-timeline.php on line 5
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/stratum/includes/templates/counter.php on line 13
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/stratum/includes/templates/counter.php on line 11
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/stratum/includes/templates/counter.php on line 16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in stratum/assets to your readme.txt
You can take inspiration from this readme.txt

stratum/stratum.php Passed 13 tests

Analyzing the main PHP file in "Stratum - Elementor Widgets" version 1.3.15
92 characters long description:
Advanced Elementor addon to extend page builder capabilities and add more advanced features.

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
There were no executable files found in this plugin28,696 lines of code in 153 files:
LanguageFilesBlank linesComment linesLines of code
PHP683,01074523,227
JavaScript763404115,165
CSS7328189
SVG201115

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.22
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes41
▷ Abstract classes12.44%
▷ Concrete classes4097.56%
▷ Final classes12.50%
Methods351
▷ Static methods82.28%
▷ Public methods27478.06%
▷ Protected methods7621.65%
▷ Private methods10.28%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin