89% icontact-widget

Code Review | iContact Widget

WordPress plugin iContact Widget scored 89% from 54 tests.

About plugin

  • Plugin page: icontact-widget
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.3
  • WordPress version: 5.9.2
  • First release: Jul 5, 2009
  • Latest release: Aug 22, 2015
  • Number of updates: 49
  • Update frequency: every 45.7 days
  • Top authors: katzwebdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active / 34,599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼298.62ms] Passed 4 tests

Server-side resources used by iContact Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.31 ▲0.1165.90 ▲0.71
Dashboard /wp-admin4.13 ▲0.1041.29 ▼13.11
Posts /wp-admin/edit.php4.43 ▲0.1048.99 ▲1.39
Add New Post /wp-admin/post-new.php7.67 ▲0.07101.17 ▼1,182.59
Media Library /wp-admin/upload.php4.08 ▲0.1034.02 ▲0.53

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
widget_icontactwidget

Browser metrics Passed 4 tests

A check of browser resources used by iContact Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.22 ▼0.445.65 ▲0.092.56 ▼0.16
Dashboard /wp-admin2,895 ▲426.16 ▼0.02119.78 ▼6.50162.09 ▼1.85
Posts /wp-admin/edit.php2,691 ▲213.24 ▼0.0063.37 ▼26.11140.55 ▼1.30
Add New Post /wp-admin/post-new.php1,686 ▼2522.55 ▲1.83481.11 ▼28.09157.77 ▼3.07
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.01145.96 ▼2.50187.98 ▼2.21

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_icontactwidget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (How the widget appears in the Widgets panel) image missing
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

icontact-widget/icontact.php 85% from 13 tests

"iContact Widget" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("icontact-widget.php" instead of "icontact.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin438 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19953438

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity82.00
▷ Minimum class complexity82.00
▷ Maximum class complexity82.00
Average method complexity6.40
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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