10% advanced-all-in-one-forms

Code Review | Advanced All In One Forms

WordPress plugin Advanced All In One Forms scored10%from 54 tests.

About plugin

  • Plugin page: advanced-all-in-o...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Jun 21, 2022
  • Latest release: Jul 25, 2022
  • Number of updates: 17
  • Update frequency: every 2.4 days
  • Top authors: cmssoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /769 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'AAIOF_Alladvancedform' not found

Server metrics [RAM: ▼0.49MB] [CPU: ▼11.87ms] Passed 4 tests

Analyzing server-side resources used by Advanced All In One Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2042.74 ▲3.49
Dashboard /wp-admin3.50 ▲0.2046.81 ▲0.46
Posts /wp-admin/edit.php3.62 ▲0.2645.80 ▼0.91
Add New Post /wp-admin/post-new.php3.35 ▼2.5438.62 ▼50.51
Media Library /wp-admin/upload.php3.43 ▲0.1941.35 ▲9.36
All In One Forms /wp-admin/edit.php?post_type=advanced_form3.4738.28
Recaptcha /wp-admin/edit.php?post_type=advanced_form&page=cf-recaptcha-page3.4033.77
Overview /wp-admin/edit.php?post_type=advanced_form&page=cf-overview-page3.4231.54

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Advanced All In One Forms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,010 ▲23914.32 ▼0.069.90 ▲8.0341.80 ▲2.07
Dashboard /wp-admin2,258 ▲725.32 ▲0.42107.96 ▼9.8340.21 ▲0.44
Posts /wp-admin/edit.php2,141 ▲492.53 ▲0.5336.18 ▼4.4233.53 ▼4.19
Add New Post /wp-admin/post-new.php1,558 ▲3023.64 ▲0.44664.81 ▼18.4836.37 ▼17.01
Media Library /wp-admin/upload.php1,437 ▲524.67 ▲0.54102.84 ▼15.5845.82 ▼1.47
All In One Forms /wp-admin/edit.php?post_type=advanced_form1,1022.4238.4928.85
Recaptcha /wp-admin/edit.php?post_type=advanced_form&page=cf-recaptcha-page8882.1628.3133.87
Overview /wp-admin/edit.php?post_type=advanced_form&page=cf-overview-page8632.1931.7128.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'AAIOF_Alladvancedform' not found
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=advanced_form&page=cf-overview-page
    • > Notice in wp-content/plugins/advanced-all-in-one-forms/includes/class-aaiof-overview.php+47
    Undefined index: form_id
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=advanced_form&page=cf-overview-page
    • > Notice in wp-content/plugins/advanced-all-in-one-forms/includes/class-aaiof-overview.php+54
    Undefined variable: k_name
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=advanced_form&page=cf-overview-page
    • > Warning in wp-content/plugins/advanced-all-in-one-forms/includes/class-aaiof-overview.php+54
    array_unique() expects parameter 1 to be array, null given
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=advanced_form&page=cf-overview-page
    • > Warning in wp-content/plugins/advanced-all-in-one-forms/includes/class-aaiof-overview.php+55
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/edit.php?post_type=advanced_form&page=cf-overview-page
    • > Notice in wp-content/plugins/advanced-all-in-one-forms/includes/class-aaiof-overview.php+53
    Undefined variable: data_id

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=advanced_form&page=cf-overview-page
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).sortable is not a function" "TypeError: jQuery(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/advanced-all-in-one-forms/assets/js/backend.js?ver=6.3.1:27:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=advanced_form&page=cf-overview-page
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).sortable is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Screenshots: Screenshot #8 (screenshot-8.png) image required
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

advanced-all-in-one-forms/advanced-all-in-one-forms.php 92% from 13 tests

The main file in "Advanced All In One Forms" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected8,513 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP1080153,523
SVG1002,671
CSS758621,691
JavaScript63713628

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.01
Average class complexity96.88
▷ Minimum class complexity1.00
▷ Maximum class complexity494.00
Average method complexity10.02
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods85
▷ Static methods44.71%
▷ Public methods85100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.53MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshots/screenshot-1.png67.41KB18.68KB▼ 72.29%
assets/screenshots/screenshot-6.png85.47KB23.60KB▼ 72.38%
assets/screenshots/screenshot-7.png74.04KB20.61KB▼ 72.16%
assets/screenshots/screenshot-2.png79.38KB22.00KB▼ 72.29%
assets/images/sort_asc.png0.16KB0.25KB0.00%