90% optifin-forms

Code Review | OPTIFIN Forms

WordPress plugin OPTIFIN Forms scored90%from 54 tests.

About plugin

  • Plugin page: optifin-forms
  • Plugin version: 1.3.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2021
  • Latest release: Jan 12, 2023
  • Number of updates: 28
  • Update frequency: every 24.0 days
  • Top authors: optifingmbh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.55ms] Passed 4 tests

Server-side resources used by OPTIFIN Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1035.37 ▼6.08
Dashboard /wp-admin3.41 ▲0.1045.70 ▼7.52
Posts /wp-admin/edit.php3.46 ▲0.1046.23 ▼4.32
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.45 ▼4.28
Media Library /wp-admin/upload.php3.33 ▲0.1036.62 ▲4.18

Server storage [IO: ▲3.00MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/optifin-forms/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/optifin-forms/img/nurgrundst\303\274ck.png"
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by OPTIFIN Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.164.73 ▲2.7140.00 ▼5.29
Dashboard /wp-admin2,206 ▲184.84 ▼1.06102.44 ▼3.6039.70 ▼4.61
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0439.19 ▲0.5333.80 ▼1.69
Add New Post /wp-admin/post-new.php1,533 ▲1423.19 ▼0.05584.13 ▼61.1057.25 ▲5.86
Media Library /wp-admin/upload.php1,382 ▼94.19 ▼0.1295.33 ▼5.1742.23 ▼1.94

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: optifin, credit calculation

optifin-forms/optifin-forms.php Passed 13 tests

"OPTIFIN Forms" version 1.3.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
28 characters long description:
Different forms from optifin

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
Success! There were no dangerous files found in this plugin8,476 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript85851834,486
CSS8304122,824
PHP12371,166

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions7
▷ Named functions7100.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
8 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/zinshaus.png3.38KB2.53KB▼ 25.09%
img/ferienhaus.png3.71KB2.85KB▼ 23.25%
img/logo-klein.png2.85KB2.01KB▼ 29.25%
img/haus.png2.70KB2.69KB0.43%
img/sonstiges.png2.83KB1.98KB▼ 29.91%