77% tci-ultimate-element-themes

Code Review | TCI Ultimate Element Themes

WordPress plugin TCI Ultimate Element Themes scored77%from 54 tests.

About plugin

  • Plugin page: tci-ultimate-elem...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5
  • WordPress version: 6.3.1
  • First release: Aug 22, 2019
  • Latest release: Oct 10, 2020
  • Number of updates: 32
  • Update frequency: every 13.0 days
  • Top authors: themecat007 (96.88%)wpessential (6.25%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,662 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.01MB] [CPU: ▼6.14ms] Passed 4 tests

Server-side resources used by TCI Ultimate Element Themes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.23 ▼1.16
Dashboard /wp-admin3.32 ▲0.0151.82 ▼5.80
Posts /wp-admin/edit.php3.37 ▲0.0151.27 ▲0.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.57 ▼17.71
Media Library /wp-admin/upload.php3.24 ▲0.0135.95 ▲0.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for TCI Ultimate Element Themes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.23 ▼0.171.93 ▲0.3642.67 ▲1.98
Dashboard /wp-admin2,212 ▲385.62 ▼0.0792.06 ▲1.4742.48 ▲1.84
Posts /wp-admin/edit.php2,117 ▲172.00 ▲0.0236.65 ▼3.8137.24 ▲0.20
Add New Post /wp-admin/post-new.php1,540 ▲323.14 ▲4.78688.74 ▼73.1457.44 ▼16.45
Media Library /wp-admin/upload.php1,420 ▲234.23 ▲0.0694.58 ▼8.5141.63 ▲0.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-modules/tci-uet-template/tci-uet-view/template-modal-filters-item.php
    • > /wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-modules/tci-uet-template/tci-uet-view/template-modal-tabs.php
    • > /wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-modules/tci-uet-template/tci-uet-view/template-modal-filters.php
    • > /wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-modules/tci-uet-template/tci-uet-view/template-modal-content.php
    • > /wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-modules/tci-uet-template/tci-uet-view/template-modal-preview.php
    • > /wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-modules/tci-uet-template/tci-uet-view/template-modal-tabs-item.php
    • > /wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-modules/tci-uet-template/tci-uet-view/template-modal-templates.php
  • 219× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TCI_UET\\TCI_UET_Widgets\\TCI_UET_Global_Widgets\\tci_uet_exit() in wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-widgets/tci-uet-global-widgets/class-tci-uet-animated-text.php:10
    • > PHP Warning
      Use of undefined constant PREMIUM_ADDONS_URL - assumed 'PREMIUM_ADDONS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-modules/tci-uet-template/tci-uet-view/template-modal-header-logo.php on line 8
    • > PHP Fatal error
      Uncaught Error: Interface 'phpDocumentor\\Reflection\\Type' not found in wp-content/plugins/tci-ultimate-element-themes/vendor/phpdocumentor/type-resolver/src/Types/Float_.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TCI_UET\\TCI_UET_Widgets\\TCI_UET_Separator_Widgets\\tci_uet_exit() in wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-widgets/tci-uet-separator-widgets/class-tci-uet-pyramids.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TCI_UET\\TCI_UET_Widgets\\TCI_UET_Separator_Widgets\\tci_uet_exit() in wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-widgets/tci-uet-separator-widgets/class-tci-uet-triangle-fest.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-modules/tci-uet-dynamic/tags/class-tci-uet-post-time.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'phpDocumentor\\Reflection\\Type' not found in wp-content/plugins/tci-ultimate-element-themes/vendor/phpdocumentor/type-resolver/src/Types/This.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TCI_UET\\TCI_UET_Widgets\\TCI_UET_Separator_Widgets\\tci_uet_exit() in wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-widgets/tci-uet-separator-widgets/class-tci-uet-triangle-layerify.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TCI_UET\\TCI_UET_Widgets\\TCI_UET_Separator_Widgets\\tci_uet_exit() in wp-content/plugins/tci-ultimate-element-themes/classes/tci-uet-widgets/tci-uet-separator-widgets/class-tci-uet-triangle-asymmetrical.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'phpDocumentor\\Reflection\\Type' not found in wp-content/plugins/tci-ultimate-element-themes/vendor/phpdocumentor/type-resolver/src/Types/Nullable.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in tci-ultimate-element-themes/assets to your readme.txt
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

tci-ultimate-element-themes/tci-uet.php 85% from 13 tests

"TCI Ultimate Element Themes" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tci-ultimate-element-themes.php" instead of "tci-uet.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 plugin52,429 lines of code in 372 files:
LanguageFilesBlank linesComment linesLines of code
PHP2796,24913,11944,628
CSS9446742,441
SVG48131,679
Markdown1075501,653
JavaScript162734421,358
JSON800638
YAML26032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.13
▷ Minimum class complexity1.00
▷ Maximum class complexity336.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces32
Interfaces13
Traits0
Classes237
▷ Abstract classes41.69%
▷ Concrete classes23398.31%
▷ Final classes4921.03%
Methods1,979
▷ Static methods21911.07%
▷ Public methods1,51876.71%
▷ Protected methods31115.72%
▷ Private methods1507.58%
Functions136
▷ Named functions9771.32%
▷ Anonymous functions3928.68%
Constants52
▷ Global constants611.54%
▷ Class constants4688.46%
▷ Public constants46100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected