79% ninja-forms-addon-manager

Code Review | Ninja Forms - Add-on Manager

WordPress plugin Ninja Forms - Add-on Manager scored79%from 54 tests.

About plugin

  • Plugin page: ninja-forms-addon...
  • Plugin version: 3.0.13
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 6.3.1
  • First release: Jun 11, 2018
  • Latest release: Feb 24, 2020
  • Number of updates: 6
  • Update frequency: every 110.5 days
  • Top authors: kstover (83.33%)krmoorhouse (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /90,263 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.01ms] Passed 4 tests

This is a short check of server-side resources used by Ninja Forms - Add-on Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.50 ▼0.93
Dashboard /wp-admin3.39 ▲0.0847.23 ▼1.88
Posts /wp-admin/edit.php3.50 ▲0.1448.48 ▲0.40
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.21 ▼9.63
Media Library /wp-admin/upload.php3.31 ▲0.0835.30 ▲2.00

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ninja Forms - Add-on Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.31 ▼1.251.87 ▲0.2143.72 ▼2.51
Dashboard /wp-admin2,213 ▲254.86 ▼0.02106.18 ▼4.6639.22 ▼4.03
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0436.01 ▼0.4732.20 ▲0.40
Add New Post /wp-admin/post-new.php1,538 ▲523.24 ▲0.07662.84 ▼45.2660.55 ▼0.09
Media Library /wp-admin/upload.php1,392 ▲74.29 ▲0.0998.01 ▲0.2441.25 ▼3.16

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% 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 0% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ninja-forms-addon-manager/includes/resources/views/hello.html.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'NinjaFormsAddonManager\\Webhooks\\Controller' not found in wp-content/plugins/ninja-forms-addon-manager/includes/app/webhooks/webhook-sync.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ninja-forms-addon-manager/bootstrap.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'NinjaFormsAddonManager\\Webhooks\\Controller' not found in wp-content/plugins/ninja-forms-addon-manager/includes/app/webhooks/webhook-example.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Plugin_Installer_Skin' not found in wp-content/plugins/ninja-forms-addon-manager/lib/wordpress/remote-installer-skin.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'NinjaFormsAddonManager\\Webhooks\\Controller' not found in wp-content/plugins/ninja-forms-addon-manager/includes/app/webhooks/webhook-install.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/ninja-forms-addon-manager/includes/config/edd.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'NinjaFormsAddonManager\\WordPress\\Plugin' not found in wp-content/plugins/ninja-forms-addon-manager/includes/plugin.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
3 plugin tags: remote installation, add-ons, forms

ninja-forms-addon-manager/ninja-forms-addon-manager.php Passed 13 tests

The entry point to "Ninja Forms - Add-on Manager" version 3.0.13 is a PHP file that has certain tags in its header comment area
48 characters long description:
Install Ninja Forms add-ons with a single click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin442 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP16124120402
Markdown233040

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.82
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes444.44%
Methods41
▷ Static methods717.07%
▷ Public methods3278.05%
▷ Protected methods00.00%
▷ Private methods921.95%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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