10% author-profiles

Code Review | Wordpress Author Plugin Widget

WordPress plugin Wordpress Author Plugin Widget scored 10% from 54 tests.

About plugin

  • Plugin page: author-profiles
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0+
  • WordPress version: 6.3.1
  • First release: Jul 30, 2011
  • Latest release: May 9, 2021
  • Number of updates: 81
  • Update frequency: every 44.1 days
  • Top authors: sabirtiger (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active / 24,014 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
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/author-profiles/author_widget.php+245
    Undefined index: auth-ignore-notice

Server metrics [RAM: ▼1.89MB] [CPU: ▼60.15ms] Passed 4 tests

An overview of server-side resources used by Wordpress Author Plugin Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.96 ▼48.59
Dashboard /wp-admin2.12 ▼1.186.26 ▼55.96
Posts /wp-admin/edit.php2.12 ▼1.245.19 ▼46.04
Add New Post /wp-admin/post-new.php2.12 ▼3.776.33 ▼90.00
Media Library /wp-admin/upload.php2.12 ▼1.116.22 ▼30.00

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
author_plugin_activated
auth-ignore-notice
widget_sab_author_widget
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Author Plugin Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.101.68 ▼0.4341.05 ▼2.74
Dashboard /wp-admin2,206 ▲154.89 ▲0.02104.36 ▼4.5345.40 ▲2.41
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0139.54 ▲0.1134.26 ▼3.49
Add New Post /wp-admin/post-new.php1,537 ▲223.36 ▲0.15654.49 ▲44.9957.31 ▲1.90
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.0496.17 ▼6.3942.52 ▼2.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/author-profiles/author_widget.php+245
    Undefined index: auth-ignore-notice
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_theysaidso_widget
    • author_plugin_activated
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • auth-ignore-notice
    • db_upgraded
    • widget_sab_author_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/author-profiles/author_admin.php
  • 1× 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/author-profiles/author_widget.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (This screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (This screenshot description corresponds to screenshot-2.(png|jpg|jpeg|gif).), #3 (This screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).), #4 (This screenshot description corresponds to screenshot-4.(png|jpg|jpeg|gif).)
You can look at the official readme.txt

author-profiles/author_widget.php 85% from 13 tests

The entry point to "Wordpress Author Plugin Widget" version 1.9 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 683 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("author-profiles.php" instead of "author_widget.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 plugin175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24542175

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
4 PNG files occupy 0.18MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png7.22KB3.82KB▼ 47.13%
screenshot-4.png48.17KB50.72KB0.00%
screenshot-2.png79.99KB32.02KB▼ 59.97%
screenshot-3.png48.17KB50.72KB0.00%