89% contact-information-widget

Code Review | Contact Information Widget

WordPress plugin Contact Information Widget scored89%from 54 tests.

About plugin

  • Plugin page: contact-informati...
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2015
  • Latest release: Nov 27, 2022
  • Number of updates: 54
  • Update frequency: every 47.9 days
  • Top authors: Shital Patel (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

5,000+ active /37,928 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Contact Information Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0346.54 ▲7.44
Dashboard /wp-admin3.34 ▼0.0148.20 ▼13.96
Posts /wp-admin/edit.php3.39 ▲0.0343.36 ▼0.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.64 ▼16.24
Media Library /wp-admin/upload.php3.26 ▲0.0332.95 ▲0.79

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_contactinformation_widget
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Contact Information Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.26 ▲0.071.77 ▲0.1645.85 ▲1.88
Dashboard /wp-admin2,198 ▲235.62 ▼0.1191.43 ▼10.6341.46 ▲0.19
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0135.49 ▲1.6235.75 ▼0.93
Add New Post /wp-admin/post-new.php1,526 ▼023.14 ▼0.59666.29 ▼32.0569.15 ▲17.56
Media Library /wp-admin/upload.php1,400 ▲34.18 ▲0.0293.46 ▼11.3541.55 ▼2.62

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_contactinformation_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: contact us widget, contact us widget plugin, contact me widget, contact-information-widget, contact information plugin...

contact-information-widget/contact-information.php 85% from 13 tests

This is the main PHP file of "Contact Information Widget" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-information-widget.php" instead of "contact-information.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 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
Everything looks great! No dangerous files found in this plugin3,765 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS31183,156
SVG100520
PHP1205389

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected