84% wp-super-form

Code Review | WP Super Form

WordPress plugin WP Super Form scored84%from 54 tests.

About plugin

  • Plugin page: wp-super-form
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3
  • WordPress version: 6.3.1
  • First release: Feb 2, 2020
  • Latest release: Feb 2, 2020
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: codefilter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲1.21ms] Passed 4 tests

An overview of server-side resources used by WP Super Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.82 ▼4.33
Dashboard /wp-admin3.36 ▲0.0649.63 ▲2.05
Posts /wp-admin/edit.php3.41 ▲0.0655.30 ▲6.68
Add New Post /wp-admin/post-new.php5.95 ▲0.06107.69 ▲19.63
Media Library /wp-admin/upload.php3.28 ▲0.0633.67 ▲0.45
Contacts /wp-admin/edit.php?post_type=wp-super-form3.3334.32
Contact /wp-admin/post-new.php?post_type=wp-super-form3.3240.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

WP Super Form: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.24 ▼1.122.22 ▲0.3442.29 ▼5.89
Dashboard /wp-admin2,231 ▲434.91 ▲0.08126.12 ▲6.5248.54 ▲3.33
Posts /wp-admin/edit.php2,120 ▲312.04 ▲0.0749.46 ▲9.9436.27 ▲0.75
Add New Post /wp-admin/post-new.php1,557 ▲3823.14 ▼0.11763.35 ▲155.8761.24 ▲6.48
Media Library /wp-admin/upload.php1,419 ▲314.21 ▼0.0498.46 ▼10.3841.63 ▼4.98
Contacts /wp-admin/edit.php?post_type=wp-super-form1,0781.9931.1229.99
Contact /wp-admin/post-new.php?post_type=wp-super-form1,4762.6454.5557.63

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-super-form/view/contact.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: contact form, wp super form, form, wp forms, super

wp-super-form/wp-super-form.php 92% from 13 tests

The main file in "WP Super Form" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected181 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP35829160
CSS10019
Markdown1002
JavaScript1250

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin