10% pimex-for-ninja-forms

Code Review | Pimex for Ninja Forms

WordPress plugin Pimex for Ninja Forms scored10%from 54 tests.

About plugin

  • Plugin page: pimex-for-ninja-f...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-1.0
  • WordPress version: 6.3.1
  • First release: Sep 27, 2017
  • Latest release: Sep 27, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: pimex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /588 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/pimex-for-ninja-forms/lib/actions/async.php+3
    Uncaught Error: Class 'NF_Abstracts_Action' not found in wp-content/plugins/pimex-for-ninja-forms/lib/actions/async.php:3
    Stack trace:
    #0 wp-content/plugins/pimex-for-ninja-forms/pimex-for-ninja-forms.php(15): require_once()
    #1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

This is a short check of server-side resources used by Pimex for Ninja Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.02 ▲4.06
Dashboard /wp-admin3.31 ▲0.0046.64 ▼4.43
Posts /wp-admin/edit.php3.36 ▲0.0051.39 ▲2.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.23 ▼21.49
Media Library /wp-admin/upload.php3.23 ▲0.0037.65 ▲1.51

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Pimex for Ninja Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.67 ▲0.0544.47 ▲0.24
Dashboard /wp-admin2,198 ▲185.57 ▼0.0882.81 ▼9.4338.91 ▼6.59
Posts /wp-admin/edit.php2,097 ▼61.99 ▼0.0337.60 ▼3.1135.89 ▲2.79
Add New Post /wp-admin/post-new.php1,526 ▼1123.24 ▲4.97671.20 ▲50.2155.34 ▼5.20
Media Library /wp-admin/upload.php1,391 ▼64.21 ▲0.03100.40 ▼6.9242.52 ▼2.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'NF_Abstracts_Action' not found in wp-content/plugins/pimex-for-ninja-forms/lib/actions/async.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'NF_Abstracts_Action' not found in wp-content/plugins/pimex-for-ninja-forms/lib/actions/async.php:3

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 93% 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
Please fix the following attributes:
  • Donate link: Invalid url: "pimex.co"
The official readme.txt might help

pimex-for-ninja-forms/pimex-for-ninja-forms.php 92% from 13 tests

The entry point to "Pimex for Ninja Forms" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin140 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3283282
JavaScript120058

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods457.14%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin