74% authors-list-based-on-recent-posts

Code Review | Authors based on recent posts

WordPress plugin Authors based on recent posts scored74%from 54 tests.

About plugin

  • Plugin page: authors-list-base...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.8
  • WordPress version: 6.3.1
  • First release: Aug 20, 2014
  • Latest release: Jun 9, 2017
  • Number of updates: 24
  • Update frequency: every 43.0 days
  • Top authors: position2devteam (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,148 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.68MB] [CPU: ▼52.58ms] Passed 4 tests

This is a short check of server-side resources used by Authors based on recent posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.31 ▼1.159.37 ▼38.42
Dashboard /wp-admin2.32 ▼0.9811.60 ▼35.68
Posts /wp-admin/edit.php2.32 ▼1.0310.22 ▼40.79
Add New Post /wp-admin/post-new.php2.32 ▼3.5611.80 ▼95.44
Media Library /wp-admin/upload.php2.32 ▼0.9111.20 ▼22.76

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Authors based on recent posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.29 ▼1.001.79 ▼0.0638.33 ▼1.21
Dashboard /wp-admin2,208 ▲205.86 ▲0.94101.17 ▼11.5440.19 ▼2.11
Posts /wp-admin/edit.php2,091 ▲22.04 ▲0.0436.92 ▼4.2531.51 ▼5.51
Add New Post /wp-admin/post-new.php1,526 ▲1223.29 ▲5.75658.39 ▼35.1856.33 ▲3.27
Media Library /wp-admin/upload.php1,390 ▲24.23 ▲0.0495.73 ▼17.8141.41 ▼3.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in abrp_Blog_Authors is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_abrp_blog_authors
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/authors-list-based-on-recent-posts/abrp.php:10

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: recent posts, authors widget, list authors, widget, posts...

authors-list-based-on-recent-posts/abrp.php 92% from 13 tests

Analyzing the main PHP file in "Authors based on recent posts" version 1.0.1
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("authors-list-based-on-recent-posts.php" instead of "abrp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin211 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There are no PNG files in this plugin