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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 33.03 ▼5.43 |
Dashboard /wp-admin | 3.06 ▲0.01 | 48.37 ▼2.92 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 44.60 ▲1.80 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.96 ▼566.44 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲73 | 15.87 ▼0.06 | 8.85 ▲0.12 | 46.95 ▼1.56 |
Dashboard /wp-admin | 2,973 ▲42 | 5.88 ▼0.30 | 143.00 ▼3.89 | 116.56 ▲6.72 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 75.62 ▲7.08 | 89.98 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,615 ▼2,096 | 21.46 ▲6.27 | 299.02 ▼182.17 | 108.63 ▼1.24 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.09 ▲0.06 | 160.20 ▲3.75 | 115.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 2 | 8 | 10 |
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 code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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