84% top-authors

Code Review | Top Authors

WordPress plugin Top Authors scored84%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: 6.3.1
  • 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

300+ active /16,830 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.10MB] [CPU: ▼0.39ms] Passed 4 tests

Server-side resources used by Top Authors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.05 ▲5.74
Dashboard /wp-admin3.40 ▲0.1050.28 ▼2.99
Posts /wp-admin/edit.php3.51 ▲0.1656.35 ▲4.29
Add New Post /wp-admin/post-new.php5.98 ▲0.1095.95 ▼1.98
Media Library /wp-admin/upload.php3.32 ▲0.0935.34 ▼0.89

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_top-authors
ta_version

Browser metrics Passed 4 tests

Checking browser requirements for Top Authors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.76 ▲0.611.95 ▲0.2245.49 ▲2.65
Dashboard /wp-admin2,195 ▲185.50 ▼0.0988.22 ▼5.1941.86 ▼1.52
Posts /wp-admin/edit.php2,097 ▼62.03 ▼0.0838.85 ▼2.4636.29 ▲1.10
Add New Post /wp-admin/post-new.php1,535 ▲718.53 ▼4.45653.32 ▼46.1262.12 ▲8.10
Media Library /wp-admin/upload.php1,394 ▼64.16 ▼0.0397.92 ▼17.2340.97 ▼6.16

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_top-authors
    • db_upgraded
    • ta_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: widget, posts, list, gravatar, authors

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

This is the main PHP file of "Top Authors" version 1.0.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous 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

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin