84% top-authors

Code Review | Top Authors

WordPress plugin Top Authors scored 84% from 54 tests.

About plugin

  • Plugin page: top-authors
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.2
  • WordPress version: 5.9.2
  • First release: Oct 26, 2010
  • Latest release: Jun 10, 2015
  • Number of updates: 48
  • Update frequency: every 35.2 days
  • Top authors: sebvandijk (64.58%)danielpataki (37.5%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active / 16,553 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼296.12ms] Passed 4 tests

An overview of server-side resources used by Top Authors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1351.93 ▲1.26
Dashboard /wp-admin3.50 ▲0.1032.06 ▼1.66
Posts /wp-admin/edit.php3.74 ▲0.1036.36 ▲0.78
Add New Post /wp-admin/post-new.php6.98 ▲0.0198.89 ▼1,175.99
Media Library /wp-admin/upload.php3.39 ▲0.0924.62 ▼7.61

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 2 new options
New WordPress options
widget_top-authors
ta_version

Browser metrics Passed 4 tests

Top Authors: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲1315.86 ▼0.145.61 ▼0.352.21 ▼0.57
Dashboard /wp-admin2,895 ▲376.07 ▼0.05119.77 ▼11.18160.31 ▲4.13
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0061.70 ▼0.67137.84 ▼0.04
Add New Post /wp-admin/post-new.php1,686 ▼418.20 ▼2.75409.77 ▲16.13154.82 ▼1.90
Media Library /wp-admin/upload.php1,695 ▼65.51 ▲0.01142.08 ▲0.88186.30 ▼2.91

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 2 options
    • widget_top-authors
    • ta_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 2× 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/top-authors/class-top-authors-widget.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/top-authors/class-top-authors-widget.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: posts, authors, widget, list, gravatar

top-authors/top_authors.php 92% from 13 tests

The entry point to "Top Authors" version 1.0.11 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("top-authors.php" instead of "top_authors.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin624 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP2116279374
CSS53017125
PO File1303094
JavaScript27431

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin