77% softtemplates-for-elementor

Code Review | Softtemplates For Elementor

WordPress plugin Softtemplates For Elementor scored77%from 54 tests.

About plugin

  • Plugin page: softtemplates-for...
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2021
  • Latest release: Mar 27, 2022
  • Number of updates: 17
  • Update frequency: every 11.4 days
  • Top authors: softhopper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,243 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.92MB] [CPU: ▲1.02ms] Passed 4 tests

Server-side resources used by Softtemplates For Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.32 ▲0.8642.57 ▲2.85
Dashboard /wp-admin4.26 ▲0.9248.76 ▼9.61
Posts /wp-admin/edit.php4.32 ▲0.9654.96 ▲11.02
Add New Post /wp-admin/post-new.php6.94 ▲1.0686.31 ▼0.19
Media Library /wp-admin/upload.php4.19 ▲0.9643.18 ▲12.80
Template Library /wp-admin/edit.php?post_type=soft-template-core4.2438.62
SoftTemplate /wp-admin/admin.php?page=soft-template-core4.4339.73

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 221 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Softtemplates For Elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲18813.45 ▼0.908.29 ▲6.6139.89 ▼1.76
Dashboard /wp-admin2,225 ▲445.62 ▼0.0588.57 ▼12.8839.68 ▼2.88
Posts /wp-admin/edit.php2,127 ▲271.98 ▼0.0134.66 ▼0.6133.25 ▼7.23
Add New Post /wp-admin/post-new.php1,553 ▲2723.35 ▲0.19658.38 ▲25.5755.59 ▲5.21
Media Library /wp-admin/upload.php1,427 ▲334.21 ▲0.01100.05 ▼5.1046.25 ▲3.84
Template Library /wp-admin/edit.php?post_type=soft-template-core1,2091.9631.0629.47
SoftTemplate /wp-admin/admin.php?page=soft-template-core1,0912.0928.3235.31

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

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

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/softtemplates-for-elementor/templates/dashboard/tabs.php
    • > /wp-content/plugins/softtemplates-for-elementor/templates/template-types-tabs.php
    • > /wp-content/plugins/softtemplates-for-elementor/templates/editor/template-library-filters.php
    • > /wp-content/plugins/softtemplates-for-elementor/templates/editor/template-library-filters-item.php
    • > /wp-content/plugins/softtemplates-for-elementor/templates/editor/template-library-content.php
    • > /wp-content/plugins/softtemplates-for-elementor/templates/editor/template-library-preview.php
    • > /wp-content/plugins/softtemplates-for-elementor/templates/editor/template-library-tabs.php
    • > /wp-content/plugins/softtemplates-for-elementor/templates/editor/template-library-tabs-item.php
    • > /wp-content/plugins/softtemplates-for-elementor/templates/editor/template-library-loading.php
    • > /wp-content/plugins/softtemplates-for-elementor/templates/editor/template-library-templates.php
  • 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/softtemplates-for-elementor/templates/soft-template-post-archive/elements/featured-image-minimal.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/softtemplates-for-elementor/templates/soft-template-post-archive/elements/excerpt.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_class() in wp-content/plugins/softtemplates-for-elementor/templates/soft-template-post-archive/global/standard.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/softtemplates-for-elementor/templates/editor/template-library-error.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/softtemplates-for-elementor/templates/template-types-popup.php:10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/softtemplates-for-elementor/templates/soft-template-post-archive/elements/featured-image.php on line 1
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/softtemplates-for-elementor/templates/soft-template-post-archive/elements/date-boxed.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/softtemplates-for-elementor/templates/soft-template-post-archive/elements/date-boxed.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/softtemplates-for-elementor/overrides/header-override.php:10
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/softtemplates-for-elementor/templates/soft-template-post-archive/elements/featured-image-minimal.php on line 1

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 83% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in softtemplates-for-elementor/assets to your readme.txt
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Donate link: Invalid url: "#"
Please take inspiration from this readme.txt

softtemplates-for-elementor/soft-template-core.php 85% from 13 tests

The main PHP file in "Softtemplates For Elementor" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("softtemplates-for-elementor.php" instead of "soft-template-core.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin30,618 lines of code in 215 files:
LanguageFilesBlank linesComment linesLines of code
PHP1454,6334,26524,053
JavaScript268322053,603
Sass2623422,935
CSS170018
SVG1009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.89
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes92
▷ Abstract classes66.52%
▷ Concrete classes8693.48%
▷ Final classes00.00%
Methods834
▷ Static methods435.16%
▷ Public methods73488.01%
▷ Protected methods9110.91%
▷ Private methods91.08%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin