84% nativeforms

Code Review | NativeForms - Contact, NPS, Payment, Feedback, Newsletter Forms

WordPress plugin NativeForms - Contact, NPS, Payment, Feedback, Newsletter Forms scored84%from 54 tests.

About plugin

  • Plugin page: nativeforms
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2021
  • Latest release: Nov 13, 2021
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: nativeforms (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /628 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.90ms] Passed 4 tests

A check of server-side resources used by NativeForms - Contact, NPS, Payment, Feedback, Newsletter Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.53 ▼2.09
Dashboard /wp-admin3.34 ▲0.0446.76 ▼6.08
Posts /wp-admin/edit.php3.40 ▲0.0451.69 ▲0.25
Add New Post /wp-admin/post-new.php5.94 ▲0.06105.89 ▲12.73
Media Library /wp-admin/upload.php3.27 ▲0.0439.96 ▲4.30

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for NativeForms - Contact, NPS, Payment, Feedback, Newsletter Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17021.61 ▲6.903.28 ▲1.4839.63 ▼6.56
Dashboard /wp-admin2,442 ▲26512.44 ▲6.87361.07 ▲268.4340.77 ▼3.01
Posts /wp-admin/edit.php2,222 ▲1228.70 ▲6.68112.53 ▲74.1634.46 ▼5.15
Add New Post /wp-admin/post-new.php6,502 ▲4,97629.09 ▲5.391,020.30 ▲369.1240.46 ▼22.55
Media Library /wp-admin/upload.php1,519 ▲11910.47 ▲6.27175.74 ▲70.7045.16 ▲1.67

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Dodel\ativeforms\\add_action() in wp-content/plugins/nativeforms/nativeforms.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: polls, forms, payment, nps, feedback...

nativeforms/nativeforms.php 92% from 13 tests

The main file in "NativeForms - Contact, NPS, Payment, Feedback, Newsletter Forms" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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
Good job! No executable or dangerous file extensions detected381 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript335256
PHP11715125

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.08
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin