78% elementinvader

Code Review | Element Invader - Elementor Template Kits Library

WordPress plugin Element Invader - Elementor Template Kits Library scored 78% from 54 tests.

About plugin

  • Plugin page: elementinvader
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Nov 4, 2020
  • Latest release: Aug 10, 2023
  • Number of updates: 22
  • Update frequency: every 45.9 days
  • Top authors: elementinvader (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active / 29,373 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.75ms] Passed 4 tests

A check of server-side resources used by Element Invader - Elementor Template Kits Library
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.25 ▼4.56
Dashboard /wp-admin3.49 ▲0.1946.64 ▼5.01
Posts /wp-admin/edit.php3.52 ▲0.1745.31 ▼3.92
Add New Post /wp-admin/post-new.php6.14 ▲0.2578.69 ▼13.50
Media Library /wp-admin/upload.php3.37 ▲0.1433.81 ▲0.21
Other Layouts /wp-admin/admin.php?page=elementinvader_marketplace3.6437.66
Contact Us /wp-admin/admin.php?page=elementinvader_contact3.3734.40
Theme Layouts /wp-admin/admin.php?page=elementinvader3.6832.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 8 new options
New WordPress options
winter_mvc_active_plugins
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
elementinvader_reviews_installed_on
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Element Invader - Elementor Template Kits Library
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲19814.02 ▼0.365.60 ▲3.3147.61 ▼2.55
Dashboard /wp-admin2,235 ▲476.04 ▲1.14103.69 ▼2.3258.15 ▲16.11
Posts /wp-admin/edit.php2,127 ▲382.05 ▲0.0336.14 ▲0.2652.22 ▲13.77
Add New Post /wp-admin/post-new.php1,548 ▲1523.27 ▲0.04607.73 ▼69.4748.64 ▼5.37
Media Library /wp-admin/upload.php1,420 ▲354.23 ▲0.01100.71 ▼5.0658.99 ▲14.41
Other Layouts /wp-admin/admin.php?page=elementinvader_marketplace4,3812.1945.26101.85
Contact Us /wp-admin/admin.php?page=elementinvader_contact1,0621.7222.8461.98
Theme Layouts /wp-admin/admin.php?page=elementinvader9551.9027.2349.88

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
  • Zombie WordPress options were found after uninstall: 8 options
    • elementinvader_reviews_installed_on
    • widget_recent-posts
    • db_upgraded
    • winter_mvc_active_plugins
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/elementinvader/public/partials/elementinvader-public-display.php
    • > /wp-content/plugins/elementinvader/application/controllers/Elementinvader_contact.php
    • > /wp-content/plugins/elementinvader/application/controllers/Elementinvader_marketplace.php
    • > /wp-content/plugins/elementinvader/admin/partials/elementinvader-admin-display.php
    • > /wp-content/plugins/elementinvader/application/controllers/Elementinvader.php
    • > /wp-content/plugins/elementinvader/application/views/general/footer.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\TemplateLibrary\\Source_Local' not found in wp-content/plugins/elementinvader/vendor/ElementorImporter/ElementorTemplateExporter.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/elementinvader/application/views/elementinvader/install_plugins_all.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CI_Model' not found in wp-content/plugins/elementinvader/application/core/MY_Model.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elementinvader/vendor/Winter_MVC/init.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/elementinvader/application/views/elementinvader/install_plugins.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/elementinvader/application/views/elementinvader_marketplace/index.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/elementinvader/application/views/elementinvader_contact/index.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elementinvader/application/views/elementinvader/export_zip.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elementinvader/application/views/elementinvader/index.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 your attention:
  • Donate link: Invalid url: ""
  • Screenshots: Screenshot #1 (ElementInvader Elementor Templates) image required
You can look at the official readme.txt

elementinvader/elementinvader.php Passed 13 tests

The principal PHP file in "Element Invader - Elementor Template Kits Library" v. 1.2.3 is loaded by WordPress automatically on each request
127 characters long description:
ElementInvader offers premium library of one click ready and free Elementor templates from https://elementinvader.com/ service.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin17,655 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP412,2441,9667,198
SVG2085,462
JavaScript95483761,766
CSS5231411,733
Sass223301,296
Markdown1140191
HTML1209

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity23.46
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods255
▷ Static methods187.06%
▷ Public methods23290.98%
▷ Protected methods62.35%
▷ Private methods176.67%
Functions104
▷ Named functions10399.04%
▷ Anonymous functions10.96%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/elementinvader-logo.png12.80KB6.28KB▼ 50.92%
admin/images/icon-256x256.png30.94KB10.74KB▼ 65.29%