84% i-divi-advanced-audio

Code Review | i-Divi Advanced Audio

WordPress plugin i-Divi Advanced Audio scored84%from 54 tests.

About plugin

  • Plugin page: i-divi-advanced-a...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jun 15, 2018
  • Latest release: Jun 15, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: dangub86 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /884 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.39ms] Passed 4 tests

A check of server-side resources used by i-Divi Advanced Audio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.83 ▼4.45
Dashboard /wp-admin3.36 ▲0.0548.97 ▼3.21
Posts /wp-admin/edit.php3.41 ▲0.0545.11 ▼1.19
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.00 ▲0.46
Media Library /wp-admin/upload.php3.28 ▲0.0538.02 ▼0.72

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by i-Divi Advanced Audio
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.23 ▲0.112.15 ▲0.2839.48 ▼9.12
Dashboard /wp-admin2,203 ▲265.56 ▲0.0091.79 ▼1.9545.86 ▲4.08
Posts /wp-admin/edit.php2,108 ▲82.03 ▲0.0336.20 ▼1.1636.08 ▼0.78
Add New Post /wp-admin/post-new.php1,534 ▲322.95 ▼0.15676.84 ▲7.2068.19 ▲3.84
Media Library /wp-admin/upload.php1,405 ▲54.18 ▲0.06100.78 ▼20.2744.21 ▼3.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i-divi-advanced-audio/i-divi-advanced-audio.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: audio, utility, backend, divi, admin...

i-divi-advanced-audio/i-divi-advanced-audio.php 85% from 13 tests

The main file in "i-Divi Advanced Audio" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin398 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File1323593

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG files were detected