74% moose-elementor-kit

Code Review | Moose Elementor Kit

WordPress plugin Moose Elementor Kit scored74%from 54 tests.

About plugin

  • Plugin page: moose-elementor-kit
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 10, 2022
  • Latest release: Mar 10, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ibllex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,000 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▼4.09ms] Passed 4 tests

An overview of server-side resources used by Moose Elementor Kit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5137.40 ▼2.50
Dashboard /wp-admin3.86 ▲0.5148.20 ▼12.35
Posts /wp-admin/edit.php3.91 ▲0.5649.18 ▲4.20
Add New Post /wp-admin/post-new.php6.39 ▲0.5196.01 ▼3.96
Media Library /wp-admin/upload.php3.78 ▲0.5536.75 ▲2.47
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius3.9833.75

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 229 new files
Database: no new tables, 10 new options
New WordPress options
fs_debug_mode
db_upgraded
fs_accounts
widget_recent-comments
widget_recent-posts
fs_active_plugins
theysaidso_admin_options
can_compress_scripts
fs_gdpr
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Moose Elementor Kit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.36 ▼1.051.61 ▲0.0732.96 ▼8.30
Dashboard /wp-admin2,287 ▲1075.01 ▼0.6488.15 ▼1.5754.16 ▲15.08
Posts /wp-admin/edit.php2,208 ▲1082.58 ▲0.5642.70 ▲1.9737.20 ▼2.10
Add New Post /wp-admin/post-new.php1,600 ▲7423.20 ▲0.13578.76 ▼66.1552.19 ▲0.63
Media Library /wp-admin/upload.php1,493 ▲904.49 ▲0.3190.58 ▼8.9184.01 ▲38.88
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,1422.1928.3425.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/moose-elementor-kit/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • fs_accounts
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • fs_debug_mode
    • fs_active_plugins
    • fs_gdpr

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 27× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/moose-elementor-kit/src/Widgets/Badge.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'MEK\\Core\\ElementsManager' not found in wp-content/plugins/moose-elementor-kit/templates/admin/extensions-tab.php:6
    • > PHP Fatal error
      Trait 'MEK\\Pro\\Traits\\Components\\Button' not found in wp-content/plugins/moose-elementor-kit/src/Traits/Components/Button.php on line 11
    • > PHP Fatal error
      Trait 'MEK\\Pro\\Traits\\Components\\Menu' not found in wp-content/plugins/moose-elementor-kit/src/Traits/Components/Menu.php on line 11
    • > PHP Fatal error
      Trait 'MEK\\Pro\\Traits\\Components\\Card' not found in wp-content/plugins/moose-elementor-kit/src/Traits/Components/Card.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/moose-elementor-kit/src/Widgets/Card.php:14
    • > PHP Fatal error
      Trait 'MEK\\Traits\\Components\\Button' not found in wp-content/plugins/moose-elementor-kit/src/Traits/Components/Hero.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/moose-elementor-kit/src/Widgets/Menu.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/moose-elementor-kit/src/Widgets/Slider.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/moose-elementor-kit/templates/admin/moose-theme-notice.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: elementor form, widgets for elementor, elements, elementor widget, woocommerce elementor...

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

The principal PHP file in "Moose Elementor Kit" v. 1.0.0 is loaded by WordPress automatically on each request
39 characters long description:
Moose UI Kit 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
No dangerous file extensions were detected43,203 lines of code in 187 files:
LanguageFilesBlank linesComment linesLines of code
PHP1588,06616,81937,439
CSS1818933,043
JavaScript109471272,695
SVG10026

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity50.18
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces9
Interfaces0
Traits18
Classes69
▷ Abstract classes22.90%
▷ Concrete classes6797.10%
▷ Final classes00.00%
Methods1,417
▷ Static methods19713.90%
▷ Public methods91164.29%
▷ Protected methods17812.56%
▷ Private methods32823.15%
Functions114
▷ Named functions10894.74%
▷ Anonymous functions65.26%
Constants129
▷ Global constants10480.62%
▷ Class constants2519.38%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.26MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wp-moose-screenshot.png246.97KB248.69KB0.00%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%