94% display-current-author-on-menu

Code Review | Display Current Author on Menu

WordPress plugin Display Current Author on Menu scored 94% from 54 tests.

About plugin

  • Plugin page: display-current-a...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.5.2
  • WordPress version: 5.8.1
  • First release: Jun 9, 2015
  • Latest release: May 2, 2016
  • Number of updates: 5
  • Update frequency: every 65.6 days
  • Top authors: riyad_A (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 801 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼143.25ms] Passed 4 tests

Analyzing server-side resources used by Display Current Author on Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0033.03 ▼5.43
Dashboard /wp-admin3.06 ▲0.0148.37 ▼2.92
Posts /wp-admin/edit.php3.11 ▲0.0144.60 ▲1.80
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.96 ▼566.44
Media Library /wp-admin/upload.php3.00 ▲0.0033.89 ▲1.96

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Display Current Author on Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7315.87 ▼0.068.85 ▲0.1246.95 ▼1.56
Dashboard /wp-admin2,973 ▲425.88 ▼0.30143.00 ▼3.89116.56 ▲6.72
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0175.62 ▲7.0889.98 ▼1.80
Add New Post /wp-admin/post-new.php1,615 ▼2,09621.46 ▲6.27299.02 ▼182.17108.63 ▼1.24
Media Library /wp-admin/upload.php1,810 ▲35.09 ▲0.06160.20 ▲3.75115.81 ▼3.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/display-current-author-on-menu/display-current-author-on-menu.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Plugin Page) image required
You can take inspiration from this readme.txt

display-current-author-on-menu/display-current-author-on-menu.php Passed 13 tests

"Display Current Author on Menu" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
Tiny plugin that allows you to display current author's name(Display Name) on menu.

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
Good job! No executable or dangerous file extensions detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12810

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin