84% author-on-hover

Code Review | WordPress Author On Hover

WordPress plugin WordPress Author On Hover scored 84% from 54 tests.

About plugin

  • Plugin page: author-on-hover
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 5.8.1
  • First release: May 20, 2021
  • Latest release: Nov 10, 2021
  • Number of updates: 4
  • Update frequency: every 46.0 days
  • Top authors: grandplugin (75%)wpqode (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 99 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲1.08MB] [CPU: ▼136.15ms] Passed 4 tests

Analyzing server-side resources used by WordPress Author On Hover
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲1.0655.67 ▲21.60
Dashboard /wp-admin4.19 ▲1.1355.39 ▲7.91
Posts /wp-admin/edit.php4.24 ▲1.1353.24 ▲6.91
Add New Post /wp-admin/post-new.php6.48 ▲1.05100.92 ▼567.59
Media Library /wp-admin/upload.php4.07 ▲1.0741.57 ▲8.18

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 89 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Author On Hover
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲22915.89 ▲0.3514.99 ▲4.2961.20 ▲10.91
Dashboard /wp-admin3,023 ▲865.95 ▼0.02144.39 ▼7.71102.52 ▼12.86
Posts /wp-admin/edit.php2,773 ▲342.73 ▲0.0266.85 ▼2.0993.46 ▲11.25
Add New Post /wp-admin/post-new.php1,710 ▲2721.16 ▲2.32291.25 ▼106.28151.13 ▲39.69
Media Library /wp-admin/upload.php1,841 ▲345.04 ▼0.02157.40 ▲5.85113.90 ▼18.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 option in the database
    • _prefix_my_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/author-on-hover/admin/partials/author-on-hover-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Screenshot 1.)
You can take inspiration from this readme.txt

author-on-hover/author-on-hover.php Passed 13 tests

"WordPress Author On Hover" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
No dangerous file extensions were detected5,570 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity18.36
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity6.15
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes00.00%
▷ Static methods2914.50%
▷ Public methods19597.50%
▷ Protected methods00.00%
▷ Private methods52.50%
▷ Named functions24100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings