94% advatix-fep-api-connection

Code Review | Advatix FEP API Connection

WordPress plugin Advatix FEP API Connection scored 94% from 54 tests.

About plugin

  • Plugin page: advatix-fep-api-c...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 5.9.2
  • First release: Nov 18, 2021
  • Latest release: Jan 27, 2022
  • Number of updates: 12
  • Update frequency: every 5.9 days
  • Top authors: advatix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 164 total downloads


Plugin footprint Passed 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.10MB] [CPU: ▼314.58ms] Passed 4 tests

Server-side resources used by Advatix FEP API Connection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.1951.13 ▲2.12
Dashboard /wp-admin3.53 ▲0.1234.93 ▼15.17
Posts /wp-admin/edit.php3.76 ▲0.1240.51 ▼32.92
Add New Post /wp-admin/post-new.php7.00 ▲0.0397.57 ▼1,210.97
Media Library /wp-admin/upload.php3.41 ▲0.1226.15 ▲0.75

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advatix FEP API Connection
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲4116.25 ▲0.345.51 ▼0.302.18 ▼0.14
Dashboard /wp-admin2,885 ▲246.10 ▼0.19123.02 ▼16.17174.82 ▲1.70
Posts /wp-admin/edit.php2,694 ▼03.23 ▲0.0064.58 ▼3.37142.97 ▼6.32
Add New Post /wp-admin/post-new.php1,752 ▲9121.47 ▲4.21484.70 ▲69.47168.76 ▲10.46
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.00148.13 ▼26.37193.33 ▼7.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/advatix-fep-api-connection/includes/admin-orders.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advatix-fep-api-connection/includes/admin-settings.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/advatix-fep-api-connection/advatix-fep-plugin.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: advatix, e-commerce, woo, store, woo commerce...

advatix-fep-api-connection/advatix-fep-plugin.php 85% from 13 tests

This is the main PHP file of "Advatix FEP API Connection" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advatix-fep-api-connection.php" instead of "advatix-fep-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,220 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods888.89%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1386.67%
▷ Anonymous functions213.33%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.05MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugininstalledviaupload.png12.05KB10.67KB▼ 11.45%
uploadpluginbutton.png24.60KB23.59KB▼ 4.11%
selectpluginzipfile.png14.92KB13.92KB▼ 6.69%