68% azexo-advertising-analytics

Code Review | AZEXO Advertising Analytics

WordPress plugin AZEXO Advertising Analytics scored68%from 54 tests.

About plugin

  • Plugin page: azexo-advertising...
  • Plugin version: 1.27.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Oct 18, 2017
  • Latest release: Apr 14, 2018
  • Number of updates: 25
  • Update frequency: every 7.2 days
  • Top authors: azexo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /931 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.63MB] [CPU: ▼1.43ms] Passed 4 tests

Analyzing server-side resources used by AZEXO Advertising Analytics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6350.06 ▲5.78
Dashboard /wp-admin3.93 ▲0.6359.68 ▲6.37
Posts /wp-admin/edit.php4.05 ▲0.6954.79 ▲2.71
Add New Post /wp-admin/post-new.php6.52 ▲0.6388.42 ▼17.56
Media Library /wp-admin/upload.php3.86 ▲0.6341.80 ▲3.36
Settings /wp-admin/admin.php?page=aza-settings3.8036.84
AZEXO Analytics /wp-admin/admin.php?page=aza-analytics3.8537.95

Server storage [IO: ▲1.56MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: 8 new tables, 7 new options
New tables
wp_aza_calltracking_phones
wp_aza_visits_position
wp_aza_visits_first
wp_aza_targets
wp_aza_visits_linear
wp_aza_calltracking
wp_aza_offline_marketing_costs
wp_aza_visits_last
New WordPress options
theysaidso_admin_options
aza-settings
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by AZEXO Advertising Analytics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16313.42 ▼0.958.14 ▲6.5942.70 ▲1.06
Dashboard /wp-admin2,226 ▲465.58 ▼0.0595.07 ▲6.4039.57 ▼2.58
Posts /wp-admin/edit.php2,131 ▲312.03 ▲0.0839.94 ▲3.7236.97 ▲6.22
Add New Post /wp-admin/post-new.php1,552 ▲2123.19 ▲0.21672.55 ▲48.9357.43 ▼6.91
Media Library /wp-admin/upload.php1,434 ▲314.18 ▼0.0199.86 ▼3.4342.67 ▼4.34
Settings /wp-admin/admin.php?page=aza-settings9312.0424.8134.38
AZEXO Analytics /wp-admin/admin.php?page=aza-analytics2,0315.28148.14118.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 8 tables
    • wp_aza_visits_first
    • wp_aza_visits_last
    • wp_aza_offline_marketing_costs
    • wp_aza_calltracking
    • wp_aza_targets
    • wp_aza_calltracking_phones
    • wp_aza_visits_position
    • wp_aza_visits_linear
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • aza-settings
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=aza-analytics
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=aza-analytics
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azexo-advertising-analytics/promo-codes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/azexo-advertising-analytics/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azexo-advertising-analytics/integrations/azh_forms.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/azexo-advertising-analytics/azexo_analytics.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azexo-advertising-analytics/report.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azexo-advertising-analytics/offline-marketing-cost.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azexo-advertising-analytics/calltracking.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azexo-advertising-analytics/demo.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azexo-advertising-analytics/integrations/azh_dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/azexo-advertising-analytics/integrations/woocommerce.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

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 to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt is a good inspiration

azexo-advertising-analytics/azexo_analytics.php 85% from 13 tests

"AZEXO Advertising Analytics" version 1.27.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("azexo-advertising-analytics.php" instead of "azexo_analytics.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected33,152 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript105,2599,25723,945
PHP10290243,753
LESS37122,977
JSON5001,667
Sass1570427
CSS47125383

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions104
▷ Named functions10399.04%
▷ Anonymous functions10.96%
Constants4
▷ Global constants4100.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
8 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/magnifying-glass.png0.31KB0.38KB0.00%
images/facebook.com.png0.25KB0.23KB▼ 10.81%
images/google.com.png0.54KB0.57KB0.00%
images/direct.yandex.ru.png0.27KB0.31KB0.00%
images/chosen-sprite.png0.53KB0.88KB0.00%