90% popular-authors

Code Review | Popular Authors

WordPress plugin Popular Authors scored90%from 54 tests.

About plugin

  • Plugin page: popular-authors
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: Aug 14, 2023
  • Number of updates: 20
  • Update frequency: every 58.7 days
  • Top authors: Ajay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,599 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼7.08ms] Passed 4 tests

A check of server-side resources used by Popular Authors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1026.31 ▼14.11
Dashboard /wp-admin3.46 ▲0.1549.00 ▼1.54
Posts /wp-admin/edit.php3.57 ▲0.2144.76 ▼3.32
Add New Post /wp-admin/post-new.php6.04 ▲0.1579.84 ▼9.01
Media Library /wp-admin/upload.php3.38 ▲0.1533.64 ▼1.89

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
widget_widget_wzpa_popular_authors
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Popular Authors
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,463 ▼29814.11 ▼0.100.54 ▼1.2417.66 ▼25.88
Dashboard /wp-admin2,207 ▲275.55 ▼0.1299.09 ▼3.4949.08 ▲6.23
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0037.59 ▼6.8034.14 ▼8.04
Add New Post /wp-admin/post-new.php6,209 ▲4,68318.92 ▼4.69954.07 ▲253.3578.96 ▲22.68
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.0298.08 ▼8.2745.41 ▼0.86

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_widget_wzpa_popular_authors

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 errors were detected

Optimizations

Plugin configuration Passed 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
6 plugin tags: top 10, views, author, top authors, popular authors...

popular-authors/popular-authors.php Passed 13 tests

The principal PHP file in "Popular Authors" v. 1.2.0 is loaded by WordPress automatically on each request
71 characters long description:
Display a list of the popular authors. A Top 10 WordPress plugin addon.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,538 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP12194662778
JavaScript31141326
PO File17581186
CSS5180126
JSON10075
Markdown128042
Sass1105

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.31
Average class complexity12.29
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods29
▷ Static methods1448.28%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin