90% nf-ux-enhancements

Code Review | UX Enhancements for Ninja Forms 3

WordPress plugin UX Enhancements for Ninja Forms 3 scored90%from 54 tests.

About plugin

  • Plugin page: nf-ux-enhancements
  • Plugin version: 3.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Sep 27, 2018
  • Latest release: Oct 17, 2018
  • Number of updates: 11
  • Update frequency: every 1.8 days
  • Top authors: githue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /629 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.41ms] Passed 4 tests

This is a short check of server-side resources used by UX Enhancements for Ninja Forms 3
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.73 ▼2.77
Dashboard /wp-admin3.34 ▼0.0150.63 ▼12.68
Posts /wp-admin/edit.php3.39 ▲0.0352.98 ▲3.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.92 ▼25.14
Media Library /wp-admin/upload.php3.26 ▲0.0338.15 ▲2.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by UX Enhancements for Ninja Forms 3
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.101.99 ▲0.3144.33 ▲4.26
Dashboard /wp-admin2,195 ▲215.61 ▼0.0087.13 ▼5.7540.15 ▼1.96
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0438.14 ▼4.6833.41 ▼10.06
Add New Post /wp-admin/post-new.php1,528 ▲222.99 ▼0.68676.77 ▲25.4559.10 ▲8.27
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.0199.62 ▼4.4145.23 ▼2.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: ux, accessibility, ninja forms, layout, usability

nf-ux-enhancements/ninja-forms-ux-enhancements.php 92% from 13 tests

"UX Enhancements for Ninja Forms 3" version 3.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nf-ux-enhancements.php" instead of "ninja-forms-ux-enhancements.php")

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
Everything looks great! No dangerous files found in this plugin548 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP38575415
JavaScript1322879
Markdown124036
CSS14118

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.50
▷ Minimum class complexity10.00
▷ Maximum class complexity23.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods25
▷ Static methods28.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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