62% axeptio-sdk-integration

Code Review | Axeptio - GDPR Cookie Consent & Compliance with a friendly touch

WordPress plugin Axeptio - GDPR Cookie Consent & Compliance with a friendly touch scored62%from 54 tests.

About plugin

  • Plugin page: axeptio-sdk-integ...
  • Plugin version: 2.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 31, 2022
  • Latest release: Nov 20, 2023
  • Number of updates: 29
  • Update frequency: every 13.4 days
  • Top authors: axeptio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /18,638 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
Installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▲4.08ms] Passed 4 tests

A check of server-side resources used by Axeptio - GDPR Cookie Consent & Compliance with a friendly touch
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.28 ▲0.81253.13 ▲209.61
Dashboard /wp-admin3.73 ▲0.4353.54 ▲5.98
Posts /wp-admin/edit.php3.83 ▲0.4755.53 ▲11.15
Add New Post /wp-admin/post-new.php6.33 ▲0.4499.57 ▲0.32
Media Library /wp-admin/upload.php3.64 ▲0.4136.22 ▼1.15
Settings /wp-admin/admin.php?page=axeptio-wordpress-plugin3.7041.46
Plugin manager /wp-admin/admin.php?page=axeptio-plugin-manager3.7252.70

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 653 new files
Database: 1 new table, 8 new options
New tables
wp_axeptio_plugin_configuration
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
axeptio_settings
axeptio/version
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Axeptio - GDPR Cookie Consent & Compliance with a friendly touch
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,108 ▲34615.15 ▲0.751.78 ▼0.1539.92 ▼4.23
Dashboard /wp-admin2,508 ▲3286.53 ▲0.93129.33 ▲29.3379.65 ▲36.33
Posts /wp-admin/edit.php2,337 ▲2343.48 ▲1.4057.97 ▲15.6165.38 ▲26.42
Add New Post /wp-admin/post-new.php2,107 ▲58023.26 ▲0.23603.54 ▼65.44164.66 ▲91.31
Media Library /wp-admin/upload.php1,566 ▲1724.34 ▲0.1688.95 ▼15.6574.44 ▲31.83
Settings /wp-admin/admin.php?page=axeptio-wordpress-plugin2,38512.86323.57164.87
Plugin manager /wp-admin/admin.php?page=axeptio-plugin-manager2,3763.9269.6882.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_axeptio_plugin_configuration
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • axeptio_settings
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • axeptio/version
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/axeptio-sdk-integration/templates/admin/onboarding/welcome.php
    • > /wp-content/plugins/axeptio-sdk-integration/templates/frontend/sdk.php
  • 306× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/axeptio-sdk-integration/vendor/php-http/client-common/src/Plugin/BaseUriPlugin.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/axeptio-sdk-integration/vendor/sentry/sentry/src/EventId.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/axeptio-sdk-integration/templates/admin/plugins/fields/edit.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/axeptio-sdk-integration/vendor/guzzlehttp/promises/src/CancellationException.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Promise\\Promise' not found in wp-content/plugins/axeptio-sdk-integration/vendor/php-http/httplug/src/Promise/HttpRejectedPromise.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/axeptio-sdk-integration/vendor/sentry/sentry/src/Tracing/SpanId.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/axeptio-sdk-integration/vendor/guzzlehttp/psr7/src/Stream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Options' not found in wp-content/plugins/axeptio-sdk-integration/vendor/symfony/options-resolver/OptionsResolver.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Message\\RequestMatcher' not found in wp-content/plugins/axeptio-sdk-integration/vendor/php-http/message/src/RequestMatcher/CallbackRequestMatcher.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Http\\Message\\Encoding\\FilteredStream' not found in wp-content/plugins/axeptio-sdk-integration/vendor/php-http/message/src/Encoding/DecompressStream.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=axeptio-wordpress-plugin
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=axeptio-wordpress-plugin 380 Unrecognized feature: 'web-share'.
    • > GET request to /wp-admin/admin.php?page=axeptio-wordpress-plugin
    • > Network (severe)
    wp-content/plugins/axeptio-sdk-integration/dist/css/fonts/SourceSerif4-Bold.otf.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=axeptio-plugin-manager
    • > Network (severe)
    wp-json/axeptio/v1/plugins/all - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=axeptio-plugin-manager
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=axeptio-plugin-manager 0:0 Uncaught SyntaxError: Unexpected token '

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
Please take inspiration from this readme.txt

axeptio-sdk-integration/axeptio-wordpress-plugin.php 85% from 13 tests

This is the main PHP file of "Axeptio - GDPR Cookie Consent & Compliance with a friendly touch" version 2.2, 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: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("axeptio-sdk-integration.php" instead of "axeptio-wordpress-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected40,575 lines of code in 603 files:
LanguageFilesBlank linesComment linesLines of code
PHP5347,94016,35232,747
JSON31003,204
Markdown201,40002,413
PO File68961,4112,018
YAML3122125
SVG40039
Bourne Shell16018
CSS2009
JavaScript2012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces84
Interfaces81
Traits25
Classes365
▷ Abstract classes113.01%
▷ Concrete classes35496.99%
▷ Final classes22162.43%
Methods2,428
▷ Static methods34214.09%
▷ Public methods2,07485.42%
▷ Protected methods712.92%
▷ Private methods28311.66%
Functions263
▷ Named functions5019.01%
▷ Anonymous functions21380.99%
Constants122
▷ Global constants119.02%
▷ Class constants11190.98%
▷ Public constants7163.96%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
dist/img/icon.png0.29KB0.39KB0.00%