90% nf-conditional-actions

Code Review | NF Conditional Actions

WordPress plugin NF Conditional Actions scored90%from 54 tests.

About plugin

  • Plugin page: nf-conditional-ac...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-4.7.4
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: May 11, 2017
  • Number of updates: 18
  • Update frequency: every 25.7 days
  • Top authors: macnetic-labs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /997 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
Install script ran successfully

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

An overview of server-side resources used by NF Conditional Actions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.70 ▼8.05
Dashboard /wp-admin3.31 ▲0.0045.62 ▼7.55
Posts /wp-admin/edit.php3.36 ▲0.0047.21 ▼0.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.04 ▼15.22
Media Library /wp-admin/upload.php3.23 ▲0.0033.92 ▼1.91

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for NF Conditional Actions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.171.62 ▼0.2035.98 ▼7.45
Dashboard /wp-admin2,200 ▲125.85 ▲0.9996.79 ▼8.3039.08 ▼0.62
Posts /wp-admin/edit.php2,092 ▲62.01 ▲0.0242.10 ▲6.8133.08 ▼2.49
Add New Post /wp-admin/post-new.php1,533 ▼923.36 ▲4.97671.04 ▲46.2379.87 ▲26.29
Media Library /wp-admin/upload.php1,382 ▲34.17 ▼0.03100.22 ▲3.9040.70 ▼1.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: condition, nf conditional actions, ninja forms, actions

nf-conditional-actions/nf-conditional-actions.php Passed 13 tests

"NF Conditional Actions" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
A plugin to add conditional actions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin577 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4112103488
PO File2151456
JavaScript15133

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity23.00
▷ Minimum class complexity9.00
▷ Maximum class complexity37.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods430.77%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin