10% author-profile

Code Review | Author Spotlight (Widget)

WordPress plugin Author Spotlight (Widget) scored 10% from 54 tests.

About plugin

  • Plugin page: author-profile
  • Plugin version: 3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Sep 26, 2009
  • Latest release: Feb 7, 2017
  • Number of updates: 30
  • Update frequency: every 98.1 days
  • Top authors: debashish (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 28,242 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/author-profile/author-profile.php+15
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.73ms] Passed 4 tests

Server-side resources used by Author Spotlight (Widget)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.433.74 ▼36.13
Dashboard /wp-admin2.05 ▼1.265.94 ▼42.76
Posts /wp-admin/edit.php2.05 ▼1.315.80 ▼42.10
Add New Post /wp-admin/post-new.php2.05 ▼3.846.34 ▼85.92
Media Library /wp-admin/upload.php2.05 ▼1.184.91 ▼27.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_authorspotlight
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Author Spotlight (Widget)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.44 ▲0.061.59 ▼0.8437.16 ▼15.50
Dashboard /wp-admin2,206 ▲155.86 ▲0.94111.58 ▼3.4940.88 ▼2.94
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0440.32 ▲5.0236.35 ▲3.33
Add New Post /wp-admin/post-new.php1,533 ▼023.46 ▲0.17645.86 ▼30.6655.82 ▼0.74
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0195.40 ▼7.6141.47 ▼4.46

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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/author-profile/author-profile.php+15
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_authorspotlight
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× 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/author-profile/author-profile.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Widget configuration screen.), #2 (Multiple author profiles (co-authors) displayed on the sidebar.), #3 (This is how the widget looks like on the single-page sidebar after configuration.)
You can look at the official readme.txt

author-profile/author-profile.php 92% from 13 tests

The main PHP file in "Author Spotlight (Widget)" ver. 3.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 465 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
Everything looks great! No dangerous files found in this plugin249 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12024249

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
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

PNG files should be compressed to save space and minimize bandwidth usage
18 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/myspace.png0.50KB0.26KB▼ 49.13%
images/flickr.png0.46KB0.25KB▼ 45.18%
images/posterous.png0.31KB0.33KB0.00%
images/blogger.png0.49KB0.39KB▼ 20.75%
images/friendfeed.png0.61KB0.36KB▼ 40.89%