83% author-box-for-divi

Code Review | Author Box for Divi

WordPress plugin Author Box for Divi scored83%from 54 tests.

About plugin

  • Plugin page: author-box-for-divi
  • Plugin version: 1.4.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 29, 2020
  • Latest release: Nov 14, 2023
  • Number of updates: 40
  • Update frequency: every 34.7 days
  • Top authors: andrejdivi (67.5%)wemadedesign (35%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /14,821 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.71ms] Passed 4 tests

An overview of server-side resources used by Author Box for Divi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.73 ▲2.43
Dashboard /wp-admin3.39 ▲0.0449.25 ▼5.48
Posts /wp-admin/edit.php3.50 ▲0.1544.94 ▲2.15
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.62 ▼19.52
Media Library /wp-admin/upload.php3.31 ▲0.0833.08 ▼0.00

Server storage [IO: ▲0.51MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Author Box for Divi: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6114.25 ▼0.131.67 ▲0.1045.31 ▲5.68
Dashboard /wp-admin2,211 ▲305.60 ▼0.0897.50 ▼2.2142.46 ▼1.43
Posts /wp-admin/edit.php2,116 ▲161.96 ▲0.0138.14 ▼3.0734.25 ▼0.20
Add New Post /wp-admin/post-new.php1,539 ▲1323.22 ▲0.32667.01 ▲62.2752.11 ▲4.18
Media Library /wp-admin/upload.php1,416 ▲164.20 ▲0.0692.68 ▼0.2540.64 ▼2.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-box-for-divi/index.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (User Section), #2 (Administration Section)
  • Screenshots: Please add descriptions for these screenshots #0, #0 in author-box-for-divi/assets to your readme.txt
You can look at the official readme.txt

author-box-for-divi/index.php 92% from 13 tests

The main PHP script in "Author Box for Divi" version 1.4.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("author-box-for-divi.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin2,502 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG1001,832
PHP16911458
CSS1314120
PO File2303092

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity7.56
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.38KB13.11KB▼ 56.85%
screenshot-2.png14.89KB6.20KB▼ 58.35%