77% jeg-elementor-kit

Code Review | Jeg Elementor Kit

WordPress plugin Jeg Elementor Kit scored77%from 54 tests.

About plugin

  • Plugin page: jeg-elementor-kit
  • Plugin version: 2.6.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2021
  • Latest release: Sep 26, 2023
  • Number of updates: 77
  • Update frequency: every 12.8 days
  • Top authors: jegstudio (77.92%)fauzanjegstudio (23.38%)

Code review

54 tests

User reviews

50 reviews

Install metrics

100,000+ active /793,437 total downloads

Benchmarks

Plugin footprint 81% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲6.53MB] [CPU: ▲24.36ms] 25% from 4 tests

An overview of server-side resources used by Jeg Elementor Kit
It is recommended to improve the following
  • RAM: Total memory usage must be kept under 10MB (currently 11.26MB on /wp-admin/admin.php?page=jkit-elements)
  • CPU: Total CPU usage should be kept under 500.00ms (currently 566.11ms on /wp-admin/admin.php?page=jkit-footer)
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 6.53MB on /wp-admin/admin.php?page=jkit-elements)
PageMemory (MB)CPU Time (ms)
Home /5.51 ▲2.0551.23 ▲5.32
Dashboard /wp-admin11.34 ▲8.0382.67 ▲20.80
Posts /wp-admin/edit.php11.36 ▲8.0094.79 ▲47.45
Add New Post /wp-admin/post-new.php13.94 ▲8.05125.06 ▲23.88
Media Library /wp-admin/upload.php11.26 ▲8.0389.21 ▲54.53
Settings /wp-admin/admin.php?page=jkit-settings11.26643.63
User Data /wp-admin/admin.php?page=jkit-user-data11.26627.33
Header /wp-admin/admin.php?page=jkit-header11.35332.24
Templates /wp-admin/admin.php?page=jkit-manage-template10.9360.43
Not Found 404 /wp-admin/admin.php?page=jkit-40411.26563.34
Footer /wp-admin/admin.php?page=jkit-footer11.35566.11
Elements /wp-admin/admin.php?page=jkit-elements11.26330.54

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 469 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Jeg Elementor Kit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,073 ▲32714.67 ▲0.372.05 ▲0.3136.69 ▼5.16
Dashboard /wp-admin2,480 ▲2926.10 ▲1.25112.13 ▼4.1882.15 ▲37.04
Posts /wp-admin/edit.php2,378 ▲2922.72 ▲0.6740.43 ▲6.7666.29 ▲30.74
Add New Post /wp-admin/post-new.php1,953 ▲43423.21 ▼0.03679.98 ▲6.6527.02 ▼24.23
Media Library /wp-admin/upload.php1,648 ▲2605.52 ▲1.40107.50 ▼4.8193.07 ▲45.68
Settings /wp-admin/admin.php?page=jkit-settings1,5193.0742.36123.68
User Data /wp-admin/admin.php?page=jkit-user-data1,5082.8838.4853.04
Header /wp-admin/admin.php?page=jkit-header1,5313.1042.7474.34
Templates /wp-admin/admin.php?page=jkit-manage-template1,5633.2342.2248.47
Not Found 404 /wp-admin/admin.php?page=jkit-4041,5162.8736.9450.72
Footer /wp-admin/admin.php?page=jkit-footer1,5233.0543.3683.15
Elements /wp-admin/admin.php?page=jkit-elements2,6472.9336.7163.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/jeg-elementor-kit/lib/jeg-element/includes/class/beaver/control/toggle.php
    • > /wp-content/plugins/jeg-elementor-kit/lib/jeg-element/includes/class/beaver/control/slider.php
    • > /wp-content/plugins/jeg-elementor-kit/lib/jeg-element/includes/class/beaver/control/dynamic-select.php
    • > /wp-content/plugins/jeg-elementor-kit/lib/jeg-element/includes/class/beaver/control/number.php
    • > /wp-content/plugins/jeg-elementor-kit/lib/jeg-element/includes/class/beaver/control/alert.php
    • > /wp-content/plugins/jeg-elementor-kit/lib/jeg-element/includes/class/beaver/control/radio-image.php
  • 214× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Jeg\\Elementor_Kit\\Elements\\Options\\Option_Abstract' not found in wp-content/plugins/jeg-elementor-kit/class/elements/options/class-testimonials-option.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Jeg\\Elementor_Kit\\Elements\\Elementor\\Elementor_Kit_Abstract' not found in wp-content/plugins/jeg-elementor-kit/class/elements/elementor/class-animated-text-elementor.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Jeg\\Elementor_Kit\\Elements\\Options\\Option_Abstract' not found in wp-content/plugins/jeg-elementor-kit/class/elements/options/class-post-list-option.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Jeg\\Customizer\\Control\\Control_Abstract' not found in wp-content/plugins/jeg-elementor-kit/lib/jeg-framework/customizer/control/class-preset-image.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Jeg\\Element\\Image\\Image_Interface' not found in wp-content/plugins/jeg-elementor-kit/lib/jeg-element/includes/class/image/class-image-lazy-load.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Jeg\\Form\\Field\\Field_Abstract' not found in wp-content/plugins/jeg-elementor-kit/lib/jeg-framework/form/field/class-upload.php:17
    • > PHP Warning
      Use of undefined constant JEG_ELEMENT_THEME_URL - assumed 'JEG_ELEMENT_THEME_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/jeg-elementor-kit/lib/jeg-element/bootstrap.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'Jeg\\Elementor_Kit\\Elements\\Options\\Option_Abstract' not found in wp-content/plugins/jeg-elementor-kit/class/elements/options/class-search-option.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Jeg\\Elementor_Kit\\Elements\\Elementor\\Elementor_Kit_Abstract' not found in wp-content/plugins/jeg-elementor-kit/class/elements/elementor/class-product-carousel-elementor.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/jeg-elementor-kit/templates/single-template.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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 your attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

jeg-elementor-kit/jeg-elementor-kit.php Passed 13 tests

"Jeg Elementor Kit" version 2.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Additional highly customizable widgets for Elementor page builder

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected85,691 lines of code in 427 files:
LanguageFilesBlank linesComment linesLines of code
PHP2598,01011,10057,825
CSS283,54411712,863
JavaScript931,5611,75210,856
SVG46004,146
JSON1001

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 366)
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.51
▷ Minimum class complexity1.00
▷ Maximum class complexity372.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity366.00
Code structure
Namespaces32
Interfaces1
Traits0
Classes226
▷ Abstract classes93.98%
▷ Concrete classes21796.02%
▷ Final classes10.46%
Methods1,352
▷ Static methods624.59%
▷ Public methods1,18487.57%
▷ Protected methods584.29%
▷ Private methods1108.14%
Functions97
▷ Named functions7274.23%
▷ Anonymous functions2525.77%
Constants19
▷ Global constants1789.47%
▷ Class constants210.53%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/admin/post-block-3.png3.96KB2.51KB▼ 36.52%
lib/jeg-framework/assets/img/sprite-skin-flat.png0.30KB0.28KB▼ 5.92%
assets/img/admin/post-block-5.png2.64KB1.82KB▼ 31.10%
assets/img/admin/testimonial-4.png3.68KB2.13KB▼ 42.02%
assets/img/admin/testimonial-1.png3.51KB2.07KB▼ 41.15%