84% wp-author-widget

Code Review | Author Widget

WordPress plugin Author Widget scored84%from 54 tests.

About plugin

  • Plugin page: wp-author-widget
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Jul 28, 2013
  • Latest release: Jul 12, 2018
  • Number of updates: 17
  • Update frequency: every 106.4 days
  • Top authors: lancewillett (70.59%)obenland (23.53%)Otto42 (11.76%)MikeHansenMe (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,265 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Author Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.61 ▲3.17
Dashboard /wp-admin3.34 ▲0.0353.36 ▼10.30
Posts /wp-admin/edit.php3.39 ▲0.0348.80 ▼7.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.95 ▼15.83
Media Library /wp-admin/upload.php3.26 ▲0.0338.47 ▲1.21

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_authors
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Author Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲1.131.82 ▼2.3646.11 ▲4.89
Dashboard /wp-admin2,192 ▲185.62 ▲0.0492.65 ▲1.2939.40 ▼4.47
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0635.37 ▼6.6334.81 ▼2.18
Add New Post /wp-admin/post-new.php1,526 ▼222.67 ▼0.49669.68 ▲54.6262.89 ▼10.04
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0397.18 ▼10.4542.03 ▼7.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_authors

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-author-widget/author-widget.php:18

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: core-plugin, iteration

wp-author-widget/author-widget.php 85% from 13 tests

The main PHP script in "Author Widget" version 0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please improve your description making it at least 10 characters long (currently 0 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-author-widget.php" instead of "author-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected103 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12215103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin