84% elementor-ninja-forms

Code Review | Ninja Forms styler for Elementor Page Builder

WordPress plugin Ninja Forms styler for Elementor Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: elementor-ninja-f...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 26, 2017
  • Latest release: Nov 26, 2017
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: re_enter_rupok (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.61ms] Passed 4 tests

A check of server-side resources used by Ninja Forms styler for Elementor Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.67 ▼3.84
Dashboard /wp-admin3.32 ▼0.0347.51 ▼15.16
Posts /wp-admin/edit.php3.37 ▲0.0148.59 ▼3.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.12 ▼11.60
Media Library /wp-admin/upload.php3.24 ▲0.0138.78 ▲4.82

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Ninja Forms styler for Elementor Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲5914.26 ▼0.091.79 ▼0.3440.95 ▼4.57
Dashboard /wp-admin2,234 ▲605.58 ▼0.1190.45 ▼5.0080.35 ▲34.75
Posts /wp-admin/edit.php2,146 ▲462.02 ▲0.0739.51 ▲3.0634.13 ▼0.23
Add New Post /wp-admin/post-new.php1,573 ▲4523.25 ▲0.14719.48 ▲68.5848.52 ▼3.41
Media Library /wp-admin/upload.php1,433 ▲364.18 ▲0.0297.15 ▼5.3380.92 ▲35.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% 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 50% 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/elementor-ninja-forms/includes/elementor-helper.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

elementor-ninja-forms/elementor-ninja-forms.php Passed 13 tests

"Ninja Forms styler for Elementor Page Builder" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
Ninja Forms styler for elementor. Design the form visually with elementor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin7,472 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript39467495,935
PHP61911221,189
CSS32811348

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity14.67
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1684.21%
▷ Protected methods315.79%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/ea-icon.png1.15KB0.26KB▼ 77.51%