83% easy-profile-widget

Code Review | Easy Profile Widget

WordPress plugin Easy Profile Widget scored83%from 54 tests.

About plugin

  • Plugin page: easy-profile-widget
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Nov 4, 2015
  • Latest release: Jan 5, 2017
  • Number of updates: 14
  • Update frequency: every 30.6 days
  • Top authors: phpbits (100%)

Code review

54 tests

User reviews

76 reviews

Install metrics

800+ active /19,794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Easy Profile Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.76 ▼0.81
Dashboard /wp-admin3.32 ▼0.0248.76 ▼9.22
Posts /wp-admin/edit.php3.37 ▲0.0247.70 ▲5.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.48 ▼12.72
Media Library /wp-admin/upload.php3.24 ▲0.0235.17 ▲1.20

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
easy_profile_widget_installed
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_easy_profile_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

Easy Profile Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.70 ▲0.351.69 ▲0.1144.42 ▲4.15
Dashboard /wp-admin2,204 ▲245.67 ▲0.0897.66 ▲10.1641.49 ▲2.01
Posts /wp-admin/edit.php2,109 ▲122.00 ▲0.0237.16 ▲1.0133.37 ▼3.79
Add New Post /wp-admin/post-new.php1,532 ▲623.16 ▲0.03706.75 ▲46.6255.16 ▲1.35
Media Library /wp-admin/upload.php1,406 ▲64.22 ▲0.0094.49 ▼7.9140.58 ▼4.50

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: 8 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • easy_profile_widget_installed
    • widget_recent-posts
    • widget_easy_profile_widget
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 3× 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/easy-profile-widget/core/functions.enqueue.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-profile-widget/core/functions.widget.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-profile-widget/core/functions.notices.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Center Aligned Profile Widget), #2 (Left Aligned Profile Section), #3 (Avatar Widget Options), #4 (Description Widget Options)
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

easy-profile-widget/plugin.php 92% from 13 tests

"Easy Profile Widget" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-profile-widget.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected507 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP52857292
Sass231112
PO File1303191
JavaScript11010
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity33.00
▷ Minimum class complexity6.00
▷ Maximum class complexity60.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin