78% wdv-about-me-widget

Code Review | WDV About Me Widget

WordPress plugin WDV About Me Widget scored78%from 54 tests.

About plugin

  • Plugin page: wdv-about-me-widget
  • Plugin version: 1.2.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 20, 2019
  • Latest release: Apr 21, 2023
  • Number of updates: 32
  • Update frequency: every 41.9 days
  • Top authors: vrpr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /16,136 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.12ms] Passed 4 tests

Analyzing server-side resources used by WDV About Me Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.30 ▼3.36
Dashboard /wp-admin3.35 ▲0.0448.39 ▲0.62
Posts /wp-admin/edit.php3.46 ▲0.1149.90 ▲0.95
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.16 ▼10.67
Media Library /wp-admin/upload.php3.25 ▲0.0236.55 ▲3.06

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_wdv_about_me

Browser metrics Passed 4 tests

This is an overview of browser requirements for WDV About Me Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,065 ▲30415.16 ▲0.525.30 ▲3.6140.16 ▲0.39
Dashboard /wp-admin2,362 ▲1856.46 ▲0.79121.32 ▲36.1541.89 ▼2.15
Posts /wp-admin/edit.php2,290 ▲1903.59 ▲1.5751.20 ▲9.5830.26 ▼5.19
Add New Post /wp-admin/post-new.php1,560 ▲2518.59 ▲0.42633.27 ▼14.1946.23 ▼14.79
Media Library /wp-admin/upload.php1,424 ▲244.41 ▲0.2280.75 ▼17.3041.10 ▼1.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_wdv_about_me
    • db_upgraded

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wdv-about-me-widget/admin/partials/wdv-about-me-widget-admin-display.php
    • > /wp-content/plugins/wdv-about-me-widget/public/partials/wdv-about-me-widget-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wdv-about-me-widget/widgets/class-wdv-about-me-widget-wdv-widget.php:29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #10, #11, #12, #6, #7, #8, #9 in wdv-about-me-widget/assets to your readme.txt
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

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

The main PHP script in "WDV About Me Widget" version 1.2.7 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin17,904 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,882
CSS163,533747,930
PHP13226579987
JavaScript23762103
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity9.62
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin