79% author-on-hover

Code Review | Author Bio On Hover - Author Box

WordPress plugin Author Bio On Hover - Author Box scored79%from 54 tests.

About plugin

  • Plugin page: author-on-hover
  • Plugin version: 5.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: May 20, 2021
  • Latest release: May 28, 2023
  • Number of updates: 28
  • Update frequency: every 26.7 days
  • Top authors: wpqode (67.86%)frohadpro (28.57%)grandplugin (10.71%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,662 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
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲2.11ms] Passed 4 tests

Analyzing server-side resources used by Author Bio On Hover - Author Box
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2037.45 ▼3.81
Dashboard /wp-admin3.49 ▲0.1946.88 ▲0.45
Posts /wp-admin/edit.php3.62 ▲0.2649.06 ▲7.99
Add New Post /wp-admin/post-new.php6.08 ▲0.2096.55 ▲4.37
Media Library /wp-admin/upload.php3.36 ▲0.1341.28 ▲7.42
All Profiles /wp-admin/edit.php?post_type=aoh_opt_page3.5441.51
Helper /wp-admin/edit.php?post_type=aoh_opt_page&page=aoh_help3.4636.15
Settings /wp-admin/edit.php?post_type=aoh_opt_page&page=aoh-settings3.4543.53
+ New Profile /wp-admin/post-new.php?post_type=aoh_opt_page3.5648.88

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 77 new files
Database: no new tables, 7 new options
New WordPress options
_aoh_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Author Bio On Hover - Author Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲8414.70 ▲0.351.73 ▼0.2640.46 ▼6.73
Dashboard /wp-admin2,254 ▲805.61 ▲0.0582.17 ▼16.2639.00 ▼4.96
Posts /wp-admin/edit.php2,569 ▲4694.79 ▲2.7690.50 ▲56.0231.29 ▼5.72
Add New Post /wp-admin/post-new.php6,380 ▲4,85026.69 ▲3.71953.10 ▲291.9640.03 ▼15.39
Media Library /wp-admin/upload.php1,457 ▲574.15 ▼0.0880.69 ▼32.5846.72 ▼1.00
All Profiles /wp-admin/edit.php?post_type=aoh_opt_page1,5305.3962.6026.22
Helper /wp-admin/edit.php?post_type=aoh_opt_page&page=aoh_help2,12711.60334.13161.57
Settings /wp-admin/edit.php?post_type=aoh_opt_page&page=aoh-settings1,5345.2374.6036.91
+ New Profile /wp-admin/post-new.php?post_type=aoh_opt_page2,6047.99161.49139.15

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 7 options in the database
    • _aoh_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/author-on-hover/admin/aoh-support-admin-display.php
    • > /wp-content/plugins/author-on-hover/admin/partials/author-on-hover-admin-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/author-on-hover/admin/aoh-support-admin-display.php:201

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: author social icons, author on hover, author box, author bio

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

"Author Bio On Hover - Author Box" version 5.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
The plugin will show author profile picture, author name, social links and custom bio on hover.

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 detected15,567 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,3165246,596
CSS73825225,087
PHP431,3311,1833,879
SVG3005

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.65
Average class complexity28.43
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity6.73
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes27.14%
▷ Concrete classes2692.86%
▷ Final classes00.00%
Methods134
▷ Static methods3223.88%
▷ Public methods12996.27%
▷ Protected methods00.00%
▷ Private methods53.73%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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
admin/aoh-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%