77% wp-and-divi-icons

Code Review | WP and Divi Icons

WordPress plugin WP and Divi Icons scored77%from 54 tests.

About plugin

  • Plugin page: wp-and-divi-icons
  • Plugin version: 2.0.8
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 7, 2018
  • Latest release: Nov 29, 2023
  • Number of updates: 53
  • Update frequency: every 36.7 days
  • Top authors: aspengrovestudios (58.49%)annaqq (43.4%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /149,367 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.44MB] [CPU: ▲2.12ms] 75% from 4 tests

Analyzing server-side resources used by WP and Divi Icons
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 563.95ms on /wp-admin/admin.php?page=ds-icon-expansion)
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4546.27 ▲4.02
Dashboard /wp-admin3.74 ▲0.4351.94 ▲2.55
Posts /wp-admin/edit.php3.85 ▲0.4955.09 ▲7.30
Add New Post /wp-admin/post-new.php6.34 ▲0.4591.27 ▼5.41
Media Library /wp-admin/upload.php3.66 ▲0.4342.17 ▲8.91
WP and Divi Icons /wp-admin/admin.php?page=ds-icon-expansion3.71563.95

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 434 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
agsdi_eth_icons
agsdi_fo_icons
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
agsdi_version

Browser metrics Passed 4 tests

Checking browser requirements for WP and Divi Icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲14513.59 ▼0.8010.39 ▲8.5540.31 ▼4.21
Dashboard /wp-admin2,211 ▲315.71 ▲0.0698.51 ▲0.9743.22 ▼7.00
Posts /wp-admin/edit.php2,095 ▼82.23 ▲0.2739.64 ▼3.0238.65 ▲4.21
Add New Post /wp-admin/post-new.php6,230 ▲4,70419.29 ▼3.57886.36 ▲236.4037.26 ▼15.36
Media Library /wp-admin/upload.php1,420 ▲264.18 ▼0.0388.11 ▼7.2142.11 ▼0.01
WP and Divi Icons /wp-admin/admin.php?page=ds-icon-expansion1,6482.1932.8388.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 9 options
    • can_compress_scripts
    • agsdi_eth_icons
    • widget_recent-comments
    • agsdi_version
    • agsdi_fo_icons
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=ds-icon-expansion
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/ai-image-generator-lab): failed to open dir: No such file or directory
    • > GET request to /wp-admin/admin.php?page=ds-icon-expansion
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/wp-layouts): failed to open dir: No such file or directory
    • > GET request to /wp-admin/admin.php?page=ds-icon-expansion
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/product-sales-report-for-woocommerce): failed to open dir: No such file or directory
    • > GET request to /wp-admin/admin.php?page=ds-icon-expansion
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/export-order-items-for-woocommerce): failed to open dir: No such file or directory
    • > GET request to /wp-admin/admin.php?page=ds-icon-expansion
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/shortcodes-for-divi): failed to open dir: No such file or directory

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-and-divi-icons/includes/divi-modules.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'AGS_Divi_Icons' not found in wp-content/plugins/wp-and-divi-icons/admin/admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #3, #4, #5, #6, #7 in wp-and-divi-icons/assets to your readme.txt
  • Screenshots: These screenshots require images: #1 (WP and Divi Icons' icon insertion dialog in the WordPress editor), #2 (The "Insert icon" button in the WordPress editor toolbar)
You can take inspiration from this readme.txt

wp-and-divi-icons/wp-and-divi-icons.php 92% from 13 tests

The primary PHP file in "WP and Divi Icons" version 2.0.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin57,698 lines of code in 416 files:
LanguageFilesBlank linesComment linesLines of code
JSON30037,949
JavaScript198526345,244
CSS218614274,816
SVG338300154,581
Sass21483542,148
PHP104934401,896
Markdown329601,055
YAML1119

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity39.00
▷ Minimum class complexity3.00
▷ Maximum class complexity112.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods55
▷ Static methods3461.82%
▷ Public methods5090.91%
▷ Protected methods00.00%
▷ Private methods59.09%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin