73% iex-integration

Code Review | IEX Integration

WordPress plugin IEX Integration scored73%from 54 tests.

About plugin

  • Plugin page: iex-integration
  • Plugin version: 2.2.5.11
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.0.0
  • WordPress version: 6.3.1
  • First release: May 25, 2016
  • Latest release: Jul 17, 2020
  • Number of updates: 72
  • Update frequency: every 21.0 days
  • Top authors: iexapp (73.61%)plasmatiksteak (27.78%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /13,194 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼58.78ms] Passed 4 tests

Analyzing server-side resources used by IEX Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.10 ▼0.369.26 ▼31.34
Dashboard /wp-admin3.12 ▼0.2310.45 ▼55.38
Posts /wp-admin/edit.php3.12 ▼0.249.12 ▼42.43
Add New Post /wp-admin/post-new.php3.12 ▼2.779.24 ▼105.97
Media Library /wp-admin/upload.php3.12 ▼0.1110.32 ▼24.83

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for IEX Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.42 ▲0.281.68 ▼0.0544.84 ▲4.72
Dashboard /wp-admin2,211 ▲315.86 ▲0.2195.00 ▲5.2983.90 ▲39.92
Posts /wp-admin/edit.php2,131 ▲312.19 ▲0.2434.68 ▼1.2936.42 ▲2.69
Add New Post /wp-admin/post-new.php1,707 ▲17622.61 ▼0.58716.36 ▲108.8355.69 ▲4.86
Media Library /wp-admin/upload.php1,425 ▲224.31 ▲0.16105.02 ▲4.8864.55 ▲20.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/iex-integration/iex.php+40
    Use of undefined constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just 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/iex-integration/iex.php:2929

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

iex-integration/iex.php 85% from 13 tests

The principal PHP file in "IEX Integration" v. 2.2.5.11 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "2.6")
  • Main file name: The principal plugin file should be the same as the plugin slug ("iex-integration.php" instead of "iex.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,395 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25432922,248
PO File157126120
JavaScript11119
CSS1018

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 210)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity244.50
▷ Minimum class complexity15.00
▷ Maximum class complexity474.00
Average method complexity13.49
▷ Minimum method complexity1.00
▷ Maximum method complexity210.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods3897.44%
▷ Protected methods00.00%
▷ Private methods12.56%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/iex-integration-colored.png1.00KB0.14KB▼ 86.22%
img/iex-integration-wordpress.png1.00KB0.13KB▼ 87.51%