84% template-builder-elementor

Code Review | Template Builder Elementor

WordPress plugin Template Builder Elementor scored84%from 54 tests.

About plugin

  • Plugin page: template-builder-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.5.0
  • WordPress version: 6.3.1
  • First release: Aug 13, 2020
  • Latest release: Aug 13, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: latheeshvmv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /930 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.11MB] [CPU: ▼6.81ms] Passed 4 tests

Server-side resources used by Template Builder Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1240.68 ▼8.81
Dashboard /wp-admin3.41 ▲0.1148.78 ▼3.17
Posts /wp-admin/edit.php3.48 ▲0.1253.32 ▲4.51
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.66 ▼13.70
Media Library /wp-admin/upload.php3.33 ▲0.1037.82 ▼1.56
Set Template /wp-admin/admin.php?page=tmpenvo_add_menu_page3.2833.12
Archive Templates /wp-admin/edit.php?post_type=tmpenvo_templ_arch3.4040.35
Templates /wp-admin/edit.php?post_type=tmpenvo_template3.4040.19
TmpEnvo Templates /wp-admin/options-general.php?page=tmpenvo-settings-admin3.2737.74

Server storage [IO: ▲2.21MB] [DB: ▲0.01MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Template Builder Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲17313.59 ▼0.715.10 ▲3.1638.84 ▼11.84
Dashboard /wp-admin2,283 ▲954.85 ▼0.1498.91 ▼18.2843.31 ▼1.76
Posts /wp-admin/edit.php2,162 ▲732.03 ▲0.0341.46 ▲1.8237.12 ▲2.54
Add New Post /wp-admin/post-new.php1,568 ▲3123.49 ▲0.38642.99 ▲8.1454.07 ▼7.50
Media Library /wp-admin/upload.php1,450 ▲624.25 ▲0.08103.03 ▼4.2046.74 ▲1.24
Set Template /wp-admin/admin.php?page=tmpenvo_add_menu_page1,1811.9828.0848.80
Archive Templates /wp-admin/edit.php?post_type=tmpenvo_templ_arch1,1712.0035.0134.07
Templates /wp-admin/edit.php?post_type=tmpenvo_template1,1681.9632.7835.32
TmpEnvo Templates /wp-admin/options-general.php?page=tmpenvo-settings-admin9822.1524.2528.53

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

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

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tmpenvo-settings-admin
    • > Notice in wp-content/plugins/template-builder-elementor/admin/class-tmpenvo-admin.php+68
    Trying to access array offset on value of type bool
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tmpenvo-settings-admin
    • > Notice in wp-content/plugins/template-builder-elementor/admin/class-tmpenvo-admin.php+68
    Trying to access array offset on value of type null

SRP Passed 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 SRP test was a success

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("paypal.me/latheeshvmv")
You can take inspiration from this readme.txt

template-builder-elementor/template-builder-elementor.php 92% from 13 tests

The main PHP script in "Template Builder Elementor" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin40,849 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
CSS96,05883625,752
PHP531,6441,15814,385
JavaScript6170676
Markdown111036

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity24.03
▷ Minimum class complexity1.00
▷ Maximum class complexity199.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes13.45%
Methods273
▷ Static methods93.30%
▷ Public methods21378.02%
▷ Protected methods4115.02%
▷ Private methods196.96%
Functions33
▷ Named functions3090.91%
▷ Anonymous functions39.09%
Constants5
▷ Global constants240.00%
▷ Class constants360.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