74% author-details

Code Review | Author Details

WordPress plugin Author Details scored74%from 54 tests.

About plugin

  • Plugin page: author-details
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 6, 2016
  • Latest release: Dec 4, 2022
  • Number of updates: 18
  • Update frequency: every 137.0 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,618 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.06ms] Passed 4 tests

A check of server-side resources used by Author Details
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.29 ▲0.16
Dashboard /wp-admin3.32 ▲0.0244.65 ▼10.02
Posts /wp-admin/edit.php3.37 ▲0.0246.17 ▲0.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.72 ▼2.95
Media Library /wp-admin/upload.php3.25 ▲0.0233.03 ▲3.05
Edit Custom Author /wp-admin/admin.php?page=ad_edit_author_details_page3.2132.02
Add Custom Author /wp-admin/admin.php?page=ad_add_new_author_details_page3.2735.03
Author Details /wp-admin/users.php?page=ad_display_all_authors_details_page3.2132.17

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 8 new options
New tables
wp_author_details_db
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
ad_global_display_on_single_post
wp_author_details_db_db_version
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Author Details
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.16 ▼1.451.80 ▲0.0047.09 ▼3.32
Dashboard /wp-admin2,210 ▲195.91 ▲1.0197.77 ▼16.5940.09 ▼7.81
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.0239.74 ▲2.7635.59 ▲2.98
Add New Post /wp-admin/post-new.php1,545 ▲3118.36 ▲0.83591.30 ▼87.6569.27 ▲14.99
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.0396.14 ▼8.4140.24 ▼4.36
Edit Custom Author /wp-admin/admin.php?page=ad_edit_author_details_page8752.1822.3925.38
Add Custom Author /wp-admin/admin.php?page=ad_add_new_author_details_page1,7166.62125.8656.77
Author Details /wp-admin/users.php?page=ad_display_all_authors_details_page8692.0223.0427.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_author_details_db
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • ad_global_display_on_single_post
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • wp_author_details_db_db_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/author-details/author-details.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/author-details/author-details.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-details/admin/extra-user-profile-fields.php:2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/author-details/database/database.php on line 42
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/author-details/database/database.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-details/admin/extra-user-profile-fields.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: profiles, about author, author details, edc, author bio...

author-details/author-details.php Passed 13 tests

"Author Details" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Display the author details at the end of the post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,296 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP11124901,221
CSS111075

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants60
▷ Global constants00.00%
▷ Class constants60100.00%
▷ Public constants60100.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
14 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/author-overlay-background.png4.22KB1.14KB▼ 72.89%
images/social_media/facebook.png4.11KB1.51KB▼ 63.32%
images/social_media/skype.png4.50KB1.62KB▼ 63.87%
images/social_media/flickr.png3.71KB1.39KB▼ 62.40%
images/author-top-background.png0.11KB0.08KB▼ 24.77%