84% templementor

Code Review | Templementor - Persistent Elementor Templates

WordPress plugin Templementor - Persistent Elementor Templates scored 84% from 54 tests.

About plugin

  • Plugin page: templementor
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6
  • WordPress version: 6.3.1
  • First release: Feb 22, 2018
  • Latest release: Jan 2, 2021
  • Number of updates: 11
  • Update frequency: every 95.0 days
  • Top authors: LCweb Projects (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 4,219 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼12.07ms] Passed 4 tests

A check of server-side resources used by Templementor - Persistent Elementor Templates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.13 ▼33.27
Dashboard /wp-admin3.33 ▲0.0346.60 ▼3.68
Posts /wp-admin/edit.php3.38 ▲0.0349.27 ▲2.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.73 ▼13.90
Media Library /wp-admin/upload.php3.26 ▲0.0335.89 ▲2.89
Templementor /wp-admin/edit.php?post_type=tpm_templates3.3035.05

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Templementor - Persistent Elementor Templates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.28 ▼1.141.59 ▼0.9540.71 ▼6.93
Dashboard /wp-admin2,206 ▲185.81 ▲0.94105.71 ▼14.3338.61 ▼6.05
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0240.47 ▲4.8237.95 ▲6.05
Add New Post /wp-admin/post-new.php1,545 ▲3118.38 ▲0.92622.89 ▼53.2352.17 ▼1.45
Media Library /wp-admin/upload.php1,394 ▲64.31 ▲0.11101.89 ▲3.9042.25 ▼2.97
Templementor /wp-admin/edit.php?post_type=tpm_templates1,0621.9430.9928.83

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templementor/metabox.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templementor/templates_pt.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templementor/apply_template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templementor/admin_menu.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/templementor/templementor.php:18

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in templementor/assets to your readme.txt
You can look at the official readme.txt

templementor/templementor.php Passed 13 tests

The principal PHP file in "Templementor - Persistent Elementor Templates" v. 1.0.1 is loaded by WordPress automatically on each request
85 characters long description:
Create persistent templates with Elementor to shape up and edit your pages in minutes

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
No dangerous file extensions were detected310 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP515756310

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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 complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.00
▷ Minimum method complexity2.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods550.00%
▷ Protected methods440.00%
▷ Private methods110.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin