89% eazy-contact-form

Code Review | Eazy Contact Form

WordPress plugin Eazy Contact Form scored89%from 54 tests.

About plugin

  • Plugin page: eazy-contact-form
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2017
  • Latest release: May 11, 2018
  • Number of updates: 13
  • Update frequency: every 33.5 days
  • Top authors: nlkplumbings (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Eazy Contact Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.39 ▼1.45
Dashboard /wp-admin3.31 ▲0.0143.09 ▼7.06
Posts /wp-admin/edit.php3.37 ▲0.0147.59 ▲3.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.17 ▼4.58
Media Library /wp-admin/upload.php3.24 ▲0.0132.18 ▼0.32

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_ezyform-widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Eazy Contact Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.60 ▼0.774.47 ▲2.7039.41 ▼3.85
Dashboard /wp-admin2,203 ▲155.91 ▲0.85102.35 ▼12.2039.43 ▼6.43
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0640.05 ▲4.5333.97 ▼0.56
Add New Post /wp-admin/post-new.php1,533 ▲523.22 ▲4.84638.32 ▲25.6563.22 ▲14.66
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.0897.60 ▲2.3941.50 ▼1.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_ezyform-widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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:
  • Screenshots: Screenshot #1 (Contact form) image required
The official readme.txt is a good inspiration

eazy-contact-form/index.php 85% from 13 tests

Analyzing the main PHP file in "Eazy Contact Form" version 1.0
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 192 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eazy-contact-form.php" instead of "index.php")

Code Analysis Passed 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
There were no executable files found in this plugin380 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP58858365
CSS1101015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.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%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png72.36KB18.24KB▼ 74.80%