84% simple-blog-authors-widget

Code Review | Simple Blog Authors Widget

WordPress plugin Simple Blog Authors Widget scored 84% from 54 tests.

About plugin

  • Plugin page: simple-blog-autho...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.5
  • WordPress version: 5.8.1
  • First release: Jul 18, 2011
  • Latest release: Apr 24, 2016
  • Number of updates: 23
  • Update frequency: every 75.7 days
  • Top authors: metodiew (78.26%)mordauk (26.09%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 13,689 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼138.31ms] Passed 4 tests

This is a short check of server-side resources used by Simple Blog Authors Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1640.29 ▲18.65
Dashboard /wp-admin3.10 ▲0.0457.31 ▲4.00
Posts /wp-admin/edit.php3.15 ▲0.0454.05 ▼0.40
Add New Post /wp-admin/post-new.php5.46 ▲0.02105.94 ▼558.21
Media Library /wp-admin/upload.php3.04 ▲0.0437.89 ▲1.37

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
widget_metodiew_simple_authors_widget

Browser metrics Passed 4 tests

A check of browser resources used by Simple Blog Authors Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲19516.27 ▲0.7420.56 ▲7.2049.88 ▼0.07
Dashboard /wp-admin2,970 ▲336.09 ▼0.02159.99 ▼6.79128.53 ▲11.20
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0071.74 ▼2.8486.12 ▼13.23
Add New Post /wp-admin/post-new.php1,683 ▼1,89218.75 ▲0.94434.52 ▼129.49118.21 ▼5.45
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.06190.07 ▲25.28123.91 ▼2.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_metodiew_simple_authors_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 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/simple-blog-authors-widget/simple-blog-authors-widget.php:21

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: widgets, authors, widget, blog authors, simple

simple-blog-authors-widget/simple-blog-authors-widget.php 92% from 13 tests

The entry point to "Simple Blog Authors Widget" version 1.5.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin188 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13835116
PO File2121460
JavaScript12112

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin