84% author-box-plus

Code Review | Author Box Plus

WordPress plugin Author Box Plus scored84%from 54 tests.

About plugin

  • Plugin page: author-box-plus
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2016
  • Latest release: Aug 22, 2016
  • Number of updates: 12
  • Update frequency: every 45.9 days
  • Top authors: wooninjas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,006 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼1.63ms] Passed 4 tests

Server-side resources used by Author Box Plus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1145.35 ▲5.83
Dashboard /wp-admin3.42 ▲0.1148.42 ▼7.35
Posts /wp-admin/edit.php3.53 ▲0.1748.93 ▼5.77
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.26 ▲0.77
Media Library /wp-admin/upload.php3.34 ▲0.1144.90 ▲11.27
Authors /wp-admin/users.php?page=abp3.3938.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Author Box Plus
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.73 ▲0.461.91 ▲0.2843.75 ▼2.67
Dashboard /wp-admin2,199 ▲225.58 ▲0.0088.30 ▼11.2538.37 ▼3.98
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0234.64 ▼3.8833.89 ▼0.77
Add New Post /wp-admin/post-new.php1,531 ▲523.24 ▼0.28695.62 ▲13.4954.29 ▼6.76
Media Library /wp-admin/upload.php1,398 ▲14.24 ▲0.0397.49 ▼5.3944.62 ▼0.02
Authors /wp-admin/users.php?page=abp1,0002.0023.5930.69

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

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

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 | 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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function abp_get_avatar() in wp-content/plugins/author-box-plus/templates/author-box.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/author-box-plus/templates/author-page.php:11
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/author-box-plus/templates/author-page-recent-posts.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function abp_get_author_name() in wp-content/plugins/author-box-plus/templates/author-page-author-box.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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: These screenshots do not have images: #1 (Administrator can fully control author options), #2 (View and edit author profiles), #3 (Add social media links to better interact with your readers)
Please take inspiration from this readme.txt

author-box-plus/author-box-plus.php 92% from 13 tests

Analyzing the main PHP file in "Author Box Plus" version 1.0.3
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,163 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP17187468913
CSS1333250

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.50
▷ Minimum class complexity3.00
▷ Maximum class complexity18.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods41
▷ Static methods1946.34%
▷ Public methods4097.56%
▷ Protected methods12.44%
▷ Private methods00.00%
Functions14
▷ Named functions1178.57%
▷ Anonymous functions321.43%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/social-icons.png2.34KB1.56KB▼ 33.47%