73% contact-easy

Code Review | Contact Easy

WordPress plugin Contact Easy scored73%from 54 tests.

About plugin

  • Plugin page: contact-easy
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 19, 2014
  • Latest release: Apr 12, 2014
  • Number of updates: 33
  • Update frequency: every 3.6 days
  • Top authors: raju_ahmed (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,822 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.35ms] Passed 4 tests

An overview of server-side resources used by Contact Easy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.09 ▼2.31
Dashboard /wp-admin3.33 ▲0.0244.60 ▼4.70
Posts /wp-admin/edit.php3.38 ▲0.0246.54 ▼1.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.99 ▼20.55
Media Library /wp-admin/upload.php3.25 ▲0.0235.16 ▼1.51

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

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

Browser metrics Passed 4 tests

Contact Easy: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.32 ▼0.011.74 ▼0.0544.93 ▲0.55
Dashboard /wp-admin2,195 ▲155.64 ▲0.0393.62 ▲3.9243.05 ▲3.07
Posts /wp-admin/edit.php2,103 ▼02.01 ▼0.0338.88 ▲0.6937.80 ▲5.75
Add New Post /wp-admin/post-new.php1,528 ▼1423.11 ▼0.02596.33 ▼32.8271.15 ▼4.51
Media Library /wp-admin/upload.php1,400 ▲64.23 ▲0.0595.15 ▼17.6841.15 ▼4.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_mukta
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-easy/plug-main.php:16

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Contact form), #2 (User data)
Please take inspiration from this readme.txt

contact-easy/plug-main.php 85% from 13 tests

"Contact Easy" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("contact-easy.php" instead of "plug-main.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 155 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
Success! There were no dangerous files found in this plugin184 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12319182
CSS1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin