94% mrkwp-extra-icons-for-divi

Code Review | Extra Icons Plugin for Divi

WordPress plugin Extra Icons Plugin for Divi scored 94% from 54 tests.

About plugin

  • Plugin page: mrkwp-extra-icons...
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3.2
  • WordPress version: 5.9.2
  • First release: Jul 4, 2019
  • Latest release: Jan 29, 2020
  • Number of updates: 6
  • Update frequency: every 34.8 days
  • Top authors: diviframework (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active / 6,455 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼296.97ms] Passed 4 tests

Analyzing server-side resources used by Extra Icons Plugin for Divi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.1956.11 ▲1.22
Dashboard /wp-admin3.54 ▲0.1437.05 ▲3.64
Posts /wp-admin/edit.php3.77 ▲0.1340.99 ▲3.02
Add New Post /wp-admin/post-new.php7.07 ▲0.1096.28 ▼1,192.39
Media Library /wp-admin/upload.php3.48 ▲0.1930.95 ▲0.27
Divi Extra Icons /wp-admin/options-general.php?page=mrkwp-extra-icons-for-icon3.4023.84

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Extra Icons Plugin for Divi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,833 ▲8715.83 ▲0.265.95 ▼0.402.68 ▲0.32
Dashboard /wp-admin2,919 ▲586.14 ▲0.05125.94 ▼55.82157.35 ▼33.59
Posts /wp-admin/edit.php2,719 ▲283.24 ▼0.0168.96 ▼1.97145.91 ▼90.67
Add New Post /wp-admin/post-new.php1,777 ▲6622.98 ▲1.53431.38 ▼19.59166.16 ▼23.29
Media Library /wp-admin/upload.php1,725 ▲275.56 ▲0.04146.18 ▲0.76197.19 ▲5.84
Divi Extra Icons /wp-admin/options-general.php?page=mrkwp-extra-icons-for-icon1,0472.4156.64105.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/mrkwp-extra-icons-for-divi/vendor/pimple/pimple/src/Pimple/Tests/ServiceIteratorTest.php:34
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/mrkwp-extra-icons-for-divi/vendor/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php:36
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/mrkwp-extra-icons-for-divi/resources/views/options/default.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/mrkwp-extra-icons-for-divi/vendor/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/mrkwp-extra-icons-for-divi/vendor/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mrkwp-extra-icons-for-divi/vendor/pimple/pimple/src/Pimple/Tests/PimpleServiceProviderInterfaceTest.php:34
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/mrkwp-extra-icons-for-divi/vendor/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php:36
    • > PHP Fatal error
      Uncaught Error: Interface 'Pimple\\ServiceProviderInterface' not found in wp-content/plugins/mrkwp-extra-icons-for-divi/vendor/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php:32
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/mrkwp-extra-icons-for-divi/vendor/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php:38
    • > PHP Notice
      Undefined variable: is_settings_updated in wp-content/plugins/mrkwp-extra-icons-for-divi/resources/views/options/default.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 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
2 plugin tags: icons, divi

mrkwp-extra-icons-for-divi/mrkwp-extra-icons-for-divi.php 85% from 13 tests

The main PHP script in "Extra Icons Plugin for Divi" version 2.1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin18,723 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,026
CSS143,557607,873
PHP374119961,724
reStructuredText19413597
Markdown1203

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.22
Average class complexity4.21
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces4
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes28.00%
Methods132
▷ Static methods43.03%
▷ Public methods13199.24%
▷ Protected methods00.00%
▷ Private methods10.76%
Functions62
▷ Named functions23.23%
▷ Anonymous functions6096.77%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected