79% wp-author-profile-box-lite

Code Review | WP Author Profile Box Lite

WordPress plugin WP Author Profile Box Lite scored 79% from 54 tests.

About plugin

  • Plugin page: wp-author-profile...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Sep 1, 2016
  • Latest release: Feb 1, 2022
  • Number of updates: 4
  • Update frequency: every 496.8 days
  • Top authors: wptravel (75%)WEN Solutions (50%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 4,478 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.65ms] Passed 4 tests

An overview of server-side resources used by WP Author Profile Box Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1044.57 ▲5.74
Dashboard /wp-admin3.39 ▲0.0858.20 ▲8.78
Posts /wp-admin/edit.php3.50 ▲0.1449.78 ▼2.94
Add New Post /wp-admin/post-new.php5.99 ▲0.10102.79 ▲1.87
Media Library /wp-admin/upload.php3.31 ▲0.0836.23 ▼2.05

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Author Profile Box Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15614.36 ▲0.066.28 ▲4.5550.49 ▲4.47
Dashboard /wp-admin2,212 ▲245.14 ▼0.76119.95 ▲11.4646.61 ▲3.54
Posts /wp-admin/edit.php2,098 ▲92.34 ▲0.3441.51 ▲2.7042.62 ▲4.23
Add New Post /wp-admin/post-new.php1,520 ▼1323.34 ▼0.37706.83 ▲46.3353.34 ▼1.91
Media Library /wp-admin/upload.php1,394 ▲124.35 ▲0.14103.76 ▼16.8147.64 ▼1.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-author-profile-box-lite/admin/partials/wp-author-profile-box-lite-admin-display.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Wp_Author_Profile_Box_Lite_Loader' not found in wp-content/plugins/wp-author-profile-box-lite/admin/class-wp-author-profile-box-lite-admin-view.php:128
    • > PHP Fatal error
      Uncaught Error: Class 'Wp_Author_Profile_Box_Lite_Loader' not found in wp-content/plugins/wp-author-profile-box-lite/public/class-wp-author-profile-box-lite-public-view.php:125
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/wp-author-profile-box-lite/public/partials/wp-author-profile-box-lite-public-display.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: author box, author profile fields, profile fields, author social icons, author description...

wp-author-profile-box-lite/wp-author-profile-box-lite.php Passed 13 tests

The entry point to "WP Author Profile Box Lite" version 1.0.2 is a PHP file that has certain tags in its header comment area
86 characters long description:
WP Author Profile Box Lite is an easy way to highlight author of your WordPress posts.

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
Success! There were no dangerous files found in this plugin8,702 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,1303024,384
CSS686383,243
SVG100685
PHP14170564390

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.78
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods33
▷ Static methods39.09%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin