77% aarambha-kits-for-elementor

Code Review | Aarambha Kits for Elementor

WordPress plugin Aarambha Kits for Elementor scored77%from 54 tests.

About plugin

  • Plugin page: aarambha-kits-for...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 6, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 19
  • Update frequency: every 18.5 days
  • Top authors: aarambhathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /831 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.45MB] [CPU: ▼1.45ms] Passed 4 tests

A check of server-side resources used by Aarambha Kits for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.4947.64 ▲8.22
Dashboard /wp-admin3.81 ▲0.4755.99 ▼5.60
Posts /wp-admin/edit.php3.87 ▲0.5162.63 ▲13.75
Add New Post /wp-admin/post-new.php6.33 ▲0.4488.11 ▼9.26
Media Library /wp-admin/upload.php3.64 ▲0.4238.87 ▲0.86
Getting Started /wp-admin/admin.php?page=aarambha-kits3.6840.11
Settings /wp-admin/admin.php?page=aarambha-kits-settings3.6642.52

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 126 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_aarambha_kits_block_5
db_upgraded
widget_aarambha_kits_block_3
widget_recent-posts
widget_recent-comments
widget_aarambha_kits_block_4
widget_aarambha_kits_block_2
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aarambha Kits for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,161 ▲37415.16 ▲0.826.90 ▲5.2742.02 ▲1.37
Dashboard /wp-admin2,461 ▲2806.47 ▲0.75123.44 ▲12.4743.64 ▲0.29
Posts /wp-admin/edit.php2,400 ▲3003.67 ▲1.7360.82 ▲20.3738.09 ▲2.92
Add New Post /wp-admin/post-new.php1,584 ▲5823.41 ▲0.01664.28 ▼34.5140.64 ▼13.10
Media Library /wp-admin/upload.php1,527 ▲1304.35 ▲0.1486.17 ▼27.1541.52 ▼5.97
Getting Started /wp-admin/admin.php?page=aarambha-kits1,3168.77181.55119.90
Settings /wp-admin/admin.php?page=aarambha-kits-settings1,55311.25102.7238.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_aarambha_kits_block_2
    • widget_recent-posts
    • widget_aarambha_kits_block_4
    • db_upgraded
    • widget_aarambha_kits_block_1
    • widget_aarambha_kits_block_3
    • can_compress_scripts
    • widget_aarambha_kits_block_5
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/aarambha-kits-for-elementor/admin/partials/aarambha-kits-admin-settings-display.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/aarambha-kits-for-elementor/admin/class-aarambha-kits-admin-term.php:269
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/aarambha-kits-for-elementor/admin/partials/aarambha-kits-admin-display.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aarambha_kits_get_options() in wp-content/plugins/aarambha-kits-for-elementor/includes/class-aarambha-kits-assets.php:39
    • > PHP Warning
      Use of undefined constant AARAMBHA_KITS_URL - assumed 'AARAMBHA_KITS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aarambha-kits-for-elementor/admin/partials/aarambha-kits-admin-display.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/aarambha-kits-for-elementor/includes/class-aarambha-kits-post-views.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Getting Started Page.), #2 (Widget Settings Control Page.), #3 (Ultimate and power pack elementor add-ons.), #4 (Aarambha Kits - A Powerhouse of scalable features.), #5 (Aarambha Kits for Elementor addon widgets section.)
Please take inspiration from this readme.txt

aarambha-kits-for-elementor/aarambha-kits.php 77% from 13 tests

The main PHP file in "Aarambha Kits for Elementor" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aarambha-kits-for-elementor.php" instead of "aarambha-kits.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 218 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected19,523 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PHP371,8263,27210,316
JavaScript223431,0095,885
CSS175252073,322

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.03
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes31
▷ Abstract classes26.45%
▷ Concrete classes2993.55%
▷ Final classes00.00%
Methods258
▷ Static methods135.04%
▷ Public methods14556.20%
▷ Protected methods10641.09%
▷ Private methods72.71%
Functions21
▷ Named functions1780.95%
▷ Anonymous functions419.05%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
42 compressed PNG files occupy 3.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/build/images/screenshot-4.png100.33KB30.08KB▼ 70.02%
assets/build/images/block-element-12.png1.62KB1.62KB0.00%
assets/build/images/block-element-17.png0.63KB0.63KB0.00%
assets/build/images/block-element-19.png1.98KB1.98KB0.00%
assets/build/images/block-widget-2.png7.99KB7.99KB0.00%