84% forms-3rdparty-dynamic-fields

Code Review | Forms: 3rd-Party Dynamic Fields

WordPress plugin Forms: 3rd-Party Dynamic Fields scored84%from 54 tests.

About plugin

  • Plugin page: forms-3rdparty-dy...
  • Plugin version: 0.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2013
  • Latest release: May 5, 2017
  • Number of updates: 19
  • Update frequency: every 68.6 days
  • Top authors: zaus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,225 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.52ms] Passed 4 tests

A check of server-side resources used by Forms: 3rd-Party Dynamic Fields
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.11 ▼3.72
Dashboard /wp-admin3.37 ▲0.0746.16 ▼3.59
Posts /wp-admin/edit.php3.42 ▲0.0748.33 ▼1.74
Add New Post /wp-admin/post-new.php5.95 ▲0.0785.00 ▼17.04
Media Library /wp-admin/upload.php3.30 ▲0.0735.35 ▼1.67

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Forms: 3rd-Party Dynamic Fields: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.034.88 ▲3.0340.21 ▼5.07
Dashboard /wp-admin2,203 ▲115.80 ▲0.7595.08 ▼24.5736.92 ▼11.11
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0333.35 ▼10.0634.87 ▲0.76
Add New Post /wp-admin/post-new.php1,533 ▼223.21 ▼0.01669.93 ▲0.3157.94 ▲1.72
Media Library /wp-admin/upload.php1,388 ▼34.28 ▲0.1294.15 ▼8.0539.91 ▼5.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/forms-3rdparty-dynamic-fields/forms-3rdparty-dynamicfields.php:33

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can take inspiration from this readme.txt

forms-3rdparty-dynamic-fields/forms-3rdparty-dynamicfields.php 92% from 13 tests

The principal PHP file in "Forms: 3rd-Party Dynamic Fields" v. 0.7.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("forms-3rdparty-dynamic-fields.php" instead of "forms-3rdparty-dynamicfields.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin815 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4119386728
Markdown151087

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity39.00
▷ Minimum class complexity4.00
▷ Maximum class complexity78.00
Average method complexity5.90
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods1548.39%
▷ Public methods2580.65%
▷ Protected methods412.90%
▷ Private methods26.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants00.00%
▷ Class constants23100.00%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin