84% inspirelite-addons-for-elementor

Code Review | Inspirelite Addons For Elementor

WordPress plugin Inspirelite Addons For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: inspirelite-addon...
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Mar 11, 2019
  • Number of updates: 41
  • Update frequency: every 0.0 days
  • Top authors: easetemplate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /635 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.91ms] Passed 4 tests

An overview of server-side resources used by Inspirelite Addons For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0140.74 ▼6.19
Dashboard /wp-admin3.36 ▲0.0147.92 ▼9.20
Posts /wp-admin/edit.php3.47 ▲0.0748.33 ▼6.06
Add New Post /wp-admin/post-new.php5.94 ▲0.0187.50 ▼10.20
Media Library /wp-admin/upload.php3.28 ▲0.0139.00 ▲1.51

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Inspirelite Addons For Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▼0.221.68 ▼0.1450.73 ▲4.97
Dashboard /wp-admin2,198 ▲215.62 ▲0.0983.53 ▼17.7840.65 ▼3.02
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0134.81 ▼1.5634.45 ▼1.35
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▼0.11632.66 ▼43.3265.36 ▲12.61
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0494.63 ▼7.0144.83 ▲2.01

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: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/inspirelite-addons-for-elementor/elementor/config.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inspirelite-addons-for-elementor/elementor/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: page builder widgets, elementor addons, elementor, page builder addon

inspirelite-addons-for-elementor/inspirelite-addons-for-elementor.php 92% from 13 tests

"Inspirelite Addons For Elementor" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin392 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP59252240
CSS13229152

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity7.00
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods15
▷ Static methods640.00%
▷ Public methods1386.67%
▷ Protected methods213.33%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin