89% ninja-forms-mailpoet

Code Review | Ninja Forms - MailPoet

WordPress plugin Ninja Forms - MailPoet scored89%from 54 tests.

About plugin

  • Plugin page: ninja-forms-mailpoet
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.3
  • WordPress version: 6.3.1
  • First release: May 19, 2015
  • Latest release: May 19, 2015
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: jeangalea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Ninja Forms - MailPoet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0241.28 ▼4.81
Dashboard /wp-admin3.58 ▼0.0553.72 ▼16.70
Posts /wp-admin/edit.php3.69 ▲0.0148.44 ▼1.81
Add New Post /wp-admin/post-new.php6.16 ▲0.0292.40 ▼4.04
Media Library /wp-admin/upload.php3.50 ▲0.0135.39 ▼4.53

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Ninja Forms - MailPoet
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▲0.331.89 ▲0.2541.67 ▲1.10
Dashboard /wp-admin2,195 ▲185.65 ▼0.0396.21 ▲3.8437.13 ▼6.64
Posts /wp-admin/edit.php2,100 ▼32.02 ▼0.0339.18 ▼4.0534.79 ▼1.51
Add New Post /wp-admin/post-new.php1,545 ▲1923.21 ▲5.72659.54 ▼29.7851.24 ▼6.62
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.01102.55 ▼1.1148.37 ▼2.48

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

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 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

ninja-forms-mailpoet/mailpoet-ninja-forms.php 69% from 13 tests

The entry point to "Ninja Forms - MailPoet" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ninja-forms-mailpoet.php" instead of "mailpoet-ninja-forms.php")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1384488

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin