83% seos-contact-form

Code Review | Seos Contact Form

WordPress plugin Seos Contact Form scored83%from 54 tests.

About plugin

  • Plugin page: seos-contact-form
  • Plugin version: 1.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.7.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2015
  • Latest release: Apr 21, 2021
  • Number of updates: 53
  • Update frequency: every 37.7 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /21,852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.88ms] Passed 4 tests

Analyzing server-side resources used by Seos Contact Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0738.52 ▼1.66
Dashboard /wp-admin3.43 ▲0.0852.86 ▼14.72
Posts /wp-admin/edit.php3.54 ▲0.1449.84 ▲2.18
Add New Post /wp-admin/post-new.php6.01 ▲0.0896.48 ▼4.33
Media Library /wp-admin/upload.php3.35 ▲0.0838.85 ▲1.20

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Seos Contact Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲2214.72 ▲0.511.65 ▼0.9637.82 ▼6.88
Dashboard /wp-admin2,212 ▲325.51 ▼0.1595.01 ▼6.5078.94 ▲32.78
Posts /wp-admin/edit.php2,121 ▲211.96 ▼0.0638.16 ▼3.3837.31 ▲0.26
Add New Post /wp-admin/post-new.php1,694 ▲15921.94 ▲3.58690.61 ▲37.7056.76 ▼14.61
Media Library /wp-admin/upload.php1,420 ▲204.13 ▼0.13102.47 ▲3.8472.70 ▲31.26

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • 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
Good news, no errors were detected

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
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/seos-contact-form/inc/shortcode.php:259
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seos-contact-form/contact-form.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/seos-contact-form/inc/input-code.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/seos-contact-form/inc/form.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 66 tag instead of maximum 10
Please take inspiration from this readme.txt

seos-contact-form/contact-form.php 77% from 13 tests

The entry point to "Seos Contact Form" version 1.8.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("seos-contact-form.php" instead of "contact-form.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 397 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected585 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP413114500
CSS217085

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon.png1.26KB0.25KB▼ 80.00%
images/icon.png1.26KB0.25KB▼ 80.00%
images/logo.png11.25KB4.39KB▼ 60.99%