84% advatix-fep-api-connection

Code Review | Advatix FEP API Connection

WordPress plugin Advatix FEP API Connection scored84%from 54 tests.

About plugin

  • Plugin page: advatix-fep-api-c...
  • Plugin version: 2.5.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2021
  • Latest release: Jul 12, 2023
  • Number of updates: 49
  • Update frequency: every 12.3 days
  • Top authors: advatix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼11.41ms] Passed 4 tests

A check of server-side resources used by Advatix FEP API Connection
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.49 ▼15.36
Dashboard /wp-admin3.31 ▲0.0047.26 ▼2.37
Posts /wp-admin/edit.php3.36 ▲0.0052.22 ▼9.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.15 ▼18.81
Media Library /wp-admin/upload.php3.23 ▲0.0038.33 ▲6.31

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Advatix FEP API Connection
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼0.861.78 ▲0.0544.44 ▲7.41
Dashboard /wp-admin2,206 ▲185.91 ▲1.06105.37 ▲0.8942.23 ▲1.27
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0142.93 ▲2.7737.45 ▲1.18
Add New Post /wp-admin/post-new.php1,520 ▼823.19 ▲0.21661.93 ▲17.4666.61 ▲10.95
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.01107.16 ▼0.7043.52 ▼2.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advatix-fep-api-connection/includes/functions/meta-boxes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advatix-fep-api-connection/includes/functions/rest-templates.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advatix-fep-api-connection/includes/functions/wc-statuses.php:124
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advatix-fep-api-connection/includes/templates/admin-settings.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advatix-fep-api-connection/includes/functions/ajax-functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advatix-fep-api-connection/includes/functions/order-hooks.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advatix-fep-api-connection/includes/functions/scheduler.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advatix-fep-api-connection/includes/functions/custom-schedules.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/advatix-fep-api-connection/advatix-fep-plugin.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advatix-fep-api-connection/includes/functions/plugin-functions.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

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 fep, advatix, woo commerce, store, e-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 2.5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,355 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP125624912,355

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity66.00
▷ Minimum class complexity66.00
▷ Maximum class complexity66.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods990.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions3694.74%
▷ Anonymous functions25.26%
Constants0
▷ Global constants00.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
3 compressed PNG files occupy 0.05MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
uploadpluginbutton.png24.60KB23.59KB▼ 4.11%
selectpluginzipfile.png14.92KB13.92KB▼ 6.69%
plugininstalledviaupload.png12.05KB10.67KB▼ 11.45%