10% personal-contact-info-widget

Code Review | Personal Contact Info Widget

WordPress plugin Personal Contact Info Widget scored10%from 54 tests.

About plugin

  • Plugin page: personal-contact-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Nov 4, 2017
  • Number of updates: 6
  • Update frequency: every 183.5 days
  • Top authors: bringmesupport (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /12,994 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/personal-contact-info-widget/personal-contact-info-widget.php+567
    Function create_function() is deprecated

Server metrics [RAM: ▼1.80MB] [CPU: ▼55.62ms] Passed 4 tests

This is a short check of server-side resources used by Personal Contact Info Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.276.65 ▼40.45
Dashboard /wp-admin2.21 ▼1.096.91 ▼50.40
Posts /wp-admin/edit.php2.22 ▼1.156.15 ▼45.99
Add New Post /wp-admin/post-new.php2.21 ▼3.686.88 ▼85.65
Media Library /wp-admin/upload.php2.21 ▼1.025.95 ▼35.06

Server storage [IO: ▲0.03MB] [DB: ▲0.87MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_jsjr_personal_contact_info
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Personal Contact Info Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▲0.131.91 ▲0.1346.13 ▲3.68
Dashboard /wp-admin2,195 ▲215.62 ▲0.0592.24 ▼11.1838.65 ▼5.38
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0542.73 ▲5.7135.56 ▲1.69
Add New Post /wp-admin/post-new.php1,526 ▼223.60 ▲0.67670.39 ▼13.3458.77 ▲7.58
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0294.53 ▼15.0643.77 ▼2.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/personal-contact-info-widget/personal-contact-info-widget.php+567
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_jsjr_personal_contact_info
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/personal-contact-info-widget/personal-contact-info-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: contact, profile, profile photo, widget, personal contact...

personal-contact-info-widget/personal-contact-info-widget.php Passed 13 tests

The entry point to "Personal Contact Info Widget" version 1.3 is a PHP file that has certain tags in its header comment area
73 characters long description:
Custom Widget for displaying your photo and personal contact information.

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
No dangerous file extensions were detected526 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP177103387
CSS2260103
JavaScript112036

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity6.08
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin