79% tec-elementor-single-builder

Code Review | TEC Elementor Single Builder

WordPress plugin TEC Elementor Single Builder scored 79% from 54 tests.

About plugin

  • Plugin page: tec-elementor-sin...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2022
  • Latest release: Jul 30, 2022
  • Number of updates: 5
  • Update frequency: every 40.0 days
  • Top authors: katsustudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 665 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
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼7.43ms] Passed 4 tests

A check of server-side resources used by TEC Elementor Single Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.30 ▼1.32
Dashboard /wp-admin3.43 ▲0.1344.63 ▼3.87
Posts /wp-admin/edit.php3.54 ▲0.1948.91 ▼0.29
Add New Post /wp-admin/post-new.php6.03 ▲0.1579.64 ▼13.38
Media Library /wp-admin/upload.php3.35 ▲0.1334.04 ▼11.15
All Builders /wp-admin/edit.php?post_type=tec_single_builder3.4034.41
Settings /wp-admin/admin.php?page=tec-settings3.3432.79
Dashboard /wp-admin/admin.php?page=tec-dashboard3.3230.55
Add New /wp-admin/post-new.php?post_type=tec_single_builder3.4863.21

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
elementor_cpt_support
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

TEC Elementor Single Builder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲13613.35 ▼1.021.68 ▼0.0139.76 ▼0.95
Dashboard /wp-admin2,247 ▲714.90 ▼0.95108.09 ▲9.4758.51 ▲10.96
Posts /wp-admin/edit.php2,133 ▲442.05 ▲0.0340.02 ▲4.9551.10 ▲19.91
Add New Post /wp-admin/post-new.php1,550 ▲1623.36 ▲0.15657.35 ▼12.6363.45 ▲5.84
Media Library /wp-admin/upload.php1,423 ▲324.25 ▲0.06102.37 ▼1.3854.91 ▲11.97
All Builders /wp-admin/edit.php?post_type=tec_single_builder1,1032.0235.0240.96
Settings /wp-admin/admin.php?page=tec-settings9262.1336.0357.64
Dashboard /wp-admin/admin.php?page=tec-dashboard1,3979.42263.2764.12
Add New /wp-admin/post-new.php?post_type=tec_single_builder2,2647.81170.0082.15

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tec-elementor-single-builder/src/views/modules/address.php
    • > /wp-content/plugins/tec-elementor-single-builder/src/views/modules/map.php
    • > /wp-content/plugins/tec-elementor-single-builder/src/views/modules/map-basic.php
  • 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/tec-elementor-single-builder/src/views/single-event.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tec-elementor-single-builder/widgets/start-end.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tec-elementor-single-builder/widgets/tags.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tec-elementor-single-builder/widgets/export-google.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tec-elementor-single-builder/widgets/featuredImage.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tec-elementor-single-builder/widgets/map.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tec-elementor-single-builder/widgets/notice.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tec-elementor-single-builder/widgets/organizer.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tec-elementor-single-builder/widgets/share.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/tec-elementor-single-builder/widgets/cost.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: booking, event, calendar, venue, events...

tec-elementor-single-builder/tec-elementor-single-builder.php Passed 13 tests

This is the main PHP file of "TEC Elementor Single Builder" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Create single event page with Elementor for The Events Calendar plugin

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
Success! There were no dangerous files found in this plugin7,444 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP281,0791,1856,827
CSS4626462
SVG100151
JavaScript2034

PHP code Passed 2 tests

Analyzing 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.15
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes314.29%
Methods150
▷ Static methods1912.67%
▷ Public methods11476.00%
▷ Protected methods3422.67%
▷ Private methods21.33%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.20MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/tec.png1.51KB1.72KB0.00%
assets/tec-logo.png10.40KB5.28KB▼ 49.23%
assets/tec2.png193.36KB82.49KB▼ 57.34%