79% elekits

Code Review | EleKits

WordPress plugin EleKits scored79%from 54 tests.

About plugin

  • Plugin page: elekits
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Nov 14, 2021
  • Latest release: Oct 1, 2022
  • Number of updates: 27
  • Update frequency: every 12.0 days
  • Top authors: wphosthub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼2.03ms] Passed 4 tests

Analyzing server-side resources used by EleKits
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2241.63 ▼3.74
Dashboard /wp-admin3.52 ▲0.2254.22 ▼0.04
Posts /wp-admin/edit.php3.57 ▲0.2254.80 ▼0.73
Add New Post /wp-admin/post-new.php6.14 ▲0.2688.85 ▼3.59
Media Library /wp-admin/upload.php3.45 ▲0.2246.88 ▲11.96

Server storage [IO: ▲1.26MB] [DB: ▲0.46MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for EleKits
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲14013.50 ▼1.128.65 ▲6.4341.99 ▼3.68
Dashboard /wp-admin2,209 ▲325.53 ▼0.0885.97 ▼12.3686.85 ▲44.29
Posts /wp-admin/edit.php2,132 ▲322.12 ▲0.1136.13 ▼3.0637.76 ▲4.21
Add New Post /wp-admin/post-new.php1,716 ▲19024.53 ▲1.42696.10 ▲12.2964.06 ▲9.21
Media Library /wp-admin/upload.php1,429 ▲294.17 ▼0.01110.54 ▲1.8285.96 ▲41.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/elekits/public/partials/elekits-public-display.php
    • > /wp-content/plugins/elekits/admin/partials/elekits-admin-display.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/elekits/includes/classes/class-elekits-sites-white-label.php:69
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/elekits/includes/importers/batch-processing/class-elekits-sites-batch-processing.php on line 122
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/elekits/includes/importers/batch-processing/class-elekits-sites-batch-processing.php on line 122
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/elekits/includes/importers/batch-processing/helpers/class-wp-background-process.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/elekits/includes/importers/class-elekits-sites-helper.php:46
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/elekits/includes/importers/batch-processing/class-elekits-sites-batch-processing.php on line 122

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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: landing page builder, visual editor, elementor, design, front-end builder...

elekits/elekits.php Passed 13 tests

The primary PHP file in "EleKits" version 0.1.1 is used by WordPress to initiate all plugin functionality
64 characters long description:
Responsive and high-converting Elementor landing page templates.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin15,270 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
CSS91,0901067,842
PHP301,2272,6735,740
JavaScript63212211,512
SVG614171
JSON5005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity28.75
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes20
▷ Abstract classes210.00%
▷ Concrete classes1890.00%
▷ Final classes00.00%
Methods235
▷ Static methods4418.72%
▷ Public methods20587.23%
▷ Protected methods208.51%
▷ Private methods104.26%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/elementor/assets/images/pixabay-logo.png7.03KB7.12KB0.00%
admin/elementor/assets/images/placeholder.png50.74KB25.55KB▼ 49.64%
admin/elementor/assets/images/block-editor.png24.42KB5.73KB▼ 76.52%
admin/elementor/assets/images/elekits-icon.png14.21KB5.24KB▼ 63.17%