10% smart-about-me-widget

Code Review | Smart About Me Widget

WordPress plugin Smart About Me Widget scored 10% from 54 tests.

About plugin

  • Plugin page: smart-about-me-wi...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Aug 9, 2012
  • Latest release: Nov 5, 2019
  • Number of updates: 6
  • Update frequency: every 440.7 days
  • Top authors: sandeep816 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 4,527 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/smart-about-me-widget/index.php+297
    Function create_function() is deprecated

Server metrics [RAM: ▼1.82MB] [CPU: ▼53.13ms] Passed 4 tests

Analyzing server-side resources used by Smart About Me Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.294.52 ▼35.68
Dashboard /wp-admin2.18 ▼1.126.42 ▼46.24
Posts /wp-admin/edit.php2.19 ▼1.177.31 ▼39.15
Add New Post /wp-admin/post-new.php2.18 ▼3.706.53 ▼91.43
Media Library /wp-admin/upload.php2.19 ▼1.045.50 ▼26.55

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

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

Browser metrics Passed 4 tests

Smart About Me Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.19 ▼1.151.59 ▼0.5840.67 ▼9.08
Dashboard /wp-admin2,200 ▲155.90 ▲0.96106.51 ▼0.7840.81 ▼0.67
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0240.41 ▼3.1233.90 ▼0.64
Add New Post /wp-admin/post-new.php1,534 ▼023.33 ▲0.20589.81 ▲12.2552.22 ▲5.11
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0195.81 ▲1.8341.27 ▼0.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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/smart-about-me-widget/index.php+297
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_smart_about_me_widget
    • widget_recent-posts
    • can_compress_scripts

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smart-about-me-widget/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget Options), #2 (Viewing the Widget)
The official readme.txt is a good inspiration

smart-about-me-widget/index.php 92% from 13 tests

Analyzing the main PHP file in "Smart About Me Widget" version 2.0
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("smart-about-me-widget.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin240 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11542240

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity10.75
▷ Minimum method complexity1.00
▷ Maximum method complexity26.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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/facebook.png0.47KB0.29KB▼ 37.73%
images/flickr.png0.46KB0.25KB▼ 45.18%
images/skype.png1.78KB0.74KB▼ 58.25%
images/feed.png0.71KB0.58KB▼ 18.26%
images/google.png0.80KB0.89KB0.00%