58% vendor-list-of-iab

Code Review | Vendor List based on IAB - wordpress plugin

WordPress plugin Vendor List based on IAB - wordpress plugin scored 58% from 54 tests.

About plugin

  • Plugin page: vendor-list-of-iab
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 5.8.1
  • First release: Sep 4, 2019
  • Latest release: Aug 15, 2020
  • Number of updates: 8
  • Update frequency: every 43.4 days
  • Top authors: nikelschubert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 325 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▼137.61ms] Passed 4 tests

Server-side resources used by Vendor List based on IAB - wordpress plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2537.01 ▲13.39
Dashboard /wp-admin3.31 ▲0.2546.50 ▼4.97
Posts /wp-admin/edit.php3.36 ▲0.2452.54 ▲8.08
Add New Post /wp-admin/post-new.php5.59 ▲0.1689.20 ▼560.05
Media Library /wp-admin/upload.php3.18 ▲0.1737.42 ▲6.51
IAB Vendor List /wp-admin/options-general.php?page=iab_vendor_list_nsc3.1535.27

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Vendor List based on IAB - wordpress plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8916.05 ▲0.3811.67 ▲2.5846.48 ▼3.14
Dashboard /wp-admin2,978 ▲475.93 ▼0.18153.42 ▲4.42111.86 ▼2.08
Posts /wp-admin/edit.php2,744 ▲82.70 ▼0.0059.00 ▼5.8580.12 ▼11.88
Add New Post /wp-admin/post-new.php1,675 ▲6018.87 ▼3.04371.78 ▲101.31105.96 ▲0.41
Media Library /wp-admin/upload.php1,812 ▲55.04 ▼0.00142.43 ▼5.24121.84 ▲9.13
IAB Vendor List /wp-admin/options-general.php?page=iab_vendor_list_nsc1,2812.1056.5371.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/vendor-list-of-iab/uninstall.php+8
    Constant PLUGIN_PATH_NSC_IVL already defined
  • Uninstaller has failed for this plugin, leaving 15 files (0.08MB) in the plugin directory
    • (new file) class/class-cookies-nsc_ivl.php
    • (new file) class/class-uninstall-nsc_ivl.php
    • (new file) admin/js/admin.js
    • (new file) class/class-plugin-configs-nsc_ivl.php
    • (new file) class/class-iab-vendor-list-nsc_ivl.php
    • (new file) class/class-shortcode-nsc_ivl.php
    • (new file) class/class-admin-settings-nsc_ivl.php
    • (new file) class/class-input-validation-nsc_ivl.php
    • (new file) class/class-admin-html-formfields-nsc_ivl.php
    • (new file) admin/tpl/admin.php
    • ...
  • This plugin does not fully uninstall, leaving 1 option in the database
    • recovery_mode_email_last_sent

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/vendor-list-of-iab/uninstall.php
  • 21× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings_object in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php on line 20
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php on line 31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php:34
    • > PHP Notice
      Trying to get property 'tabs' of non-object in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php on line 32
    • > PHP Notice
      Trying to get property 'tabs' of non-object in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php on line 20
    • > PHP Notice
      Trying to get property 'active_tab_index' of non-object in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php on line 27
    • > PHP Notice
      Trying to get property 'page_title' of non-object in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php on line 3
    • > PHP Notice
      Trying to get property 'tabs' of non-object in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php on line 31
    • > PHP Notice
      Undefined variable: settings_object in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php on line 3
    • > PHP Notice
      Trying to get property 'settings_page_configs' of non-object in wp-content/plugins/vendor-list-of-iab/admin/tpl/admin.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

vendor-list-of-iab/iab-vendor-list-nsc_ivl.php 85% from 13 tests

The main PHP script in "Vendor List based on IAB - wordpress plugin" version 1.0 is automatically included on every request by WordPress
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
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vendor-list-of-iab.php" instead of "iab-vendor-list-nsc_ivl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,039 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP119528815
JSON100224

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.38
▷ Minimum class complexity5.00
▷ Maximum class complexity16.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods3162.00%
▷ Protected methods00.00%
▷ Private methods1938.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin