83% wpdatatables-forminator

Code Review | wpDataTables integration for Forminator Forms

WordPress plugin wpDataTables integration for Forminator Forms scored83%from 54 tests.

About plugin

  • Plugin page: wpdatatables-form...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 7, 2021
  • Latest release: May 29, 2023
  • Number of updates: 8
  • Update frequency: every 94.3 days
  • Top authors: wpDataTables (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /22,550 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: ▼4.79ms] Passed 4 tests

Analyzing server-side resources used by wpDataTables integration for Forminator Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.82 ▲6.24
Dashboard /wp-admin3.31 ▲0.0050.12 ▼9.67
Posts /wp-admin/edit.php3.36 ▲0.0047.37 ▼5.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.19 ▼8.72
Media Library /wp-admin/upload.php3.23 ▲0.0042.49 ▲4.83

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for wpDataTables integration for Forminator Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.81 ▼0.0347.45 ▲3.04
Dashboard /wp-admin2,195 ▲185.52 ▼0.0699.31 ▼2.2046.85 ▲4.85
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0337.84 ▲2.6234.72 ▼1.54
Add New Post /wp-admin/post-new.php1,526 ▼823.37 ▲4.98692.17 ▲17.8152.09 ▼36.63
Media Library /wp-admin/upload.php1,394 ▼34.22 ▲0.0297.55 ▼6.4943.03 ▼2.78

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wpdatatables-forminator/wdt-forminator-integration.php
    • > /wp-content/plugins/wpdatatables-forminator/templates/tabpanel.inc.php
    • > /wp-content/plugins/wpdatatables-forminator/templates/data_source_block.inc.php
    • > /wp-content/plugins/wpdatatables-forminator/templates/tab.inc.php

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
The official readme.txt is a good inspiration

wpdatatables-forminator/wdt-forminator-integration.php 77% from 13 tests

"wpDataTables integration for Forminator Forms" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpdatatables-forminator.php" instead of "wdt-forminator-integration.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 97% from 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
No dangerous file extensions were detected1,551 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP41111541,125
JavaScript24585413
CSS12013

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 110)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity238.00
▷ Minimum class complexity238.00
▷ Maximum class complexity238.00
Average method complexity11.77
▷ Minimum method complexity1.00
▷ Maximum method complexity110.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods22100.00%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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