77% genius-addon-lite

Code Review | Genius Addons For Elementor

WordPress plugin Genius Addons For Elementor scored77%from 54 tests.

About plugin

  • Plugin page: genius-addon-lite
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8
  • WordPress version: 6.3.1
  • First release: Oct 23, 2021
  • Latest release: Oct 24, 2021
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: xgenious (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /662 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
Install script ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼17.68ms] Passed 4 tests

A check of server-side resources used by Genius Addons For Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.16 ▼4.71
Dashboard /wp-admin3.20 ▼0.1032.26 ▼17.80
Posts /wp-admin/edit.php3.27 ▼0.0831.52 ▼16.73
Add New Post /wp-admin/post-new.php5.44 ▼0.4569.47 ▼31.47
Media Library /wp-admin/upload.php3.21 ▼0.0232.08 ▼1.55

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Genius Addons For Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,475 ▼1,27112.77 ▼1.982.32 ▲0.3843.13 ▲0.27
Dashboard /wp-admin843 ▼1,3451.38 ▼4.5212.60 ▼103.0421.46 ▼20.63
Posts /wp-admin/edit.php854 ▼1,2351.53 ▼0.496.73 ▼29.1521.17 ▼18.46
Add New Post /wp-admin/post-new.php580 ▼9391.73 ▼21.4719.74 ▼625.467.86 ▼44.54
Media Library /wp-admin/upload.php739 ▼6491.73 ▼2.4024.13 ▼81.6027.92 ▼16.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 were found after uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • can_compress_scripts

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 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genius-addon-lite/admin/partials/tabs/get-pro.php
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant GENIUS_ADDON_ADMIN_ASSETS - assumed 'GENIUS_ADDON_ADMIN_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/genius-addon-lite/admin/partials/tabs/home.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/genius-addon-lite/admin/partials/tabs/home.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Genius\\Core\\Widget_Manager' not found in wp-content/plugins/genius-addon-lite/admin/partials/genius-manu-page-display.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/genius-addon-lite/admin/partials/tabs/cache-option.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/genius-addon-lite/admin/partials/tabs/extensions.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Genius\\Core\\Widget_Manager' not found in wp-content/plugins/genius-addon-lite/admin/partials/tabs/elements.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Genius\\Core\\Widget_Manager' not found in wp-content/plugins/genius-addon-lite/admin/partials/tabs/third-party.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/genius-addon-lite/admin/partials/tabs/configurations.php:4
    • > PHP Warning
      Use of undefined constant GENIUS_ADDON_ADMIN_ASSETS - assumed 'GENIUS_ADDON_ADMIN_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/genius-addon-lite/admin/partials/tabs/home.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/genius-addon-lite/admin/partials/tabs/custom-css.php:4

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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

genius-addon-lite/genius-addon.php 77% from 13 tests

The principal PHP file in "Genius Addons For Elementor" v. 1.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 72 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("genius-addon-lite.php" instead of "genius-addon.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "5.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected17,611 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
CSS72,279467,981
PHP303951,0454,702
SVG3004,674
JavaScript53833254

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.61
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods119
▷ Static methods2218.49%
▷ Public methods9176.47%
▷ Protected methods2621.85%
▷ Private methods21.68%
Functions8
▷ Named functions8100.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
7 PNG files occupy 0.48MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/image/love.png36.63KB10.39KB▼ 71.64%
admin/assets/icon/menu-icon.png0.32KB0.26KB▼ 20.24%
assets/icon/menu-icon.png0.32KB0.26KB▼ 20.24%
admin/assets/image/help.png23.58KB7.47KB▼ 68.33%
admin/assets/image/subscribe.png40.73KB12.11KB▼ 70.27%