78% minimal-profile-widget

Code Review | Minimal Profile Widget

WordPress plugin Minimal Profile Widget scored78%from 54 tests.

About plugin

  • Plugin page: minimal-profile-w...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.1.1
  • WordPress version: 6.3.1
  • First release: May 8, 2019
  • Latest release: Jun 2, 2019
  • Number of updates: 3
  • Update frequency: every 8.7 days
  • Top authors: ibrahimhasnat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /505 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.47ms] Passed 4 tests

Server-side resources used by Minimal Profile Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.54 ▼2.17
Dashboard /wp-admin3.35 ▲0.0540.79 ▼8.26
Posts /wp-admin/edit.php3.40 ▲0.0446.62 ▼1.81
Add New Post /wp-admin/post-new.php5.93 ▲0.0478.56 ▼17.28
Media Library /wp-admin/upload.php3.27 ▲0.0434.04 ▼2.16

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_minimalprofilewidget_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Minimal Profile Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.40 ▼0.904.42 ▲2.6443.70 ▲0.47
Dashboard /wp-admin2,208 ▲224.87 ▼0.10112.88 ▼10.1342.89 ▼5.94
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0634.98 ▲0.8133.06 ▼1.77
Add New Post /wp-admin/post-new.php1,536 ▲323.28 ▲0.10652.99 ▼66.3857.60 ▼8.37
Media Library /wp-admin/upload.php1,391 ▲94.22 ▼0.0196.11 ▼7.0241.61 ▼2.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_minimalprofilewidget_widget

Smoke tests 50% 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 0% 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/minimal-profile-widget/index.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimal-profile-widget/inc/minimal-assets.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/minimal-profile-widget/inc/minimal-profile-widget-class.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: profile, sidebar, widget, profile plugin, widgets...

minimal-profile-widget/minimal-profile-widget.php 92% from 13 tests

The entry point to "Minimal Profile Widget" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin235 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42737194
CSS12041

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected