90% quform-wpml

Code Review | Quform WPML

WordPress plugin Quform WPML scored90%from 54 tests.

About plugin

  • Plugin page: quform-wpml
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Sep 7, 2022
  • Latest release: Nov 28, 2023
  • Number of updates: 7
  • Update frequency: every 63.9 days
  • Top authors: ThemeCatcher (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,087 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.36ms] Passed 4 tests

An overview of server-side resources used by Quform WPML
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.26 ▼0.76
Dashboard /wp-admin3.32 ▲0.0147.11 ▼4.16
Posts /wp-admin/edit.php3.37 ▲0.0145.25 ▼4.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.62 ▲7.70
Media Library /wp-admin/upload.php3.24 ▲0.0135.48 ▼3.66

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Quform WPML
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.72 ▲0.541.90 ▲0.1944.10 ▲0.35
Dashboard /wp-admin2,195 ▲185.62 ▼0.0291.60 ▼6.5641.85 ▲0.29
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0237.67 ▼4.0236.40 ▼2.58
Add New Post /wp-admin/post-new.php1,526 ▼023.11 ▼0.02599.54 ▼56.2356.34 ▲4.14
Media Library /wp-admin/upload.php1,397 ▲64.20 ▼0.0395.75 ▼5.1841.81 ▼1.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: multilingual, translations, form builder, quform, wpml...

quform-wpml/quform-wpml.php Passed 13 tests

Analyzing the main PHP file in "Quform WPML" version 1.0.1
34 characters long description:
Translate Quform forms using WPML.

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
Good job! No executable or dangerous file extensions detected832 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8185138832

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity35.50
▷ Minimum class complexity1.00
▷ Maximum class complexity193.00
Average method complexity10.00
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods23
▷ Static methods417.39%
▷ Public methods1773.91%
▷ Protected methods626.09%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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