10% azaflash-retargeting

Code Review | Azameo

WordPress plugin Azameo scored10%from 54 tests.

About plugin

  • Plugin page: azaflash-retargeting
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.8
  • WordPress version: 6.3.1
  • First release: Apr 2, 2016
  • Latest release: Mar 8, 2022
  • Number of updates: 102
  • Update frequency: every 21.3 days
  • Top authors: eniclot (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /7,846 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/azaflash-retargeting/azaflash-retargeting.php+159
    file_get_contents(https://shopify.azameo.com/wordpressinstall?email=contact%40potrivit.com&domain=wp.com&tracker_name=wpcom&woocommerce=false&token=xQNEOFFajR5n4nRscoLj): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

Server metrics [RAM: ▼0.67MB] [CPU: ▼17.21ms] Passed 4 tests

An overview of server-side resources used by Azameo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.32 ▲1.65
Dashboard /wp-admin3.32 ▼0.0243.00 ▼16.25
Posts /wp-admin/edit.php3.44 ▲0.0847.17 ▲2.39
Add New Post /wp-admin/post-new.php3.20 ▼2.6934.61 ▼56.61
Media Library /wp-admin/upload.php3.25 ▲0.0235.37 ▲4.89

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
azameo_token
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Azameo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9614.62 ▼0.026.56 ▲4.7937.58 ▼4.57
Dashboard /wp-admin2,214 ▲375.51 ▼0.1291.55 ▼6.7039.15 ▼4.82
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0136.15 ▼0.8034.91 ▼3.03
Add New Post /wp-admin/post-new.php1,539 ▲1123.00 ▼0.00663.99 ▲12.9560.64 ▲9.68
Media Library /wp-admin/upload.php1,410 ▲194.19 ▲0.0096.21 ▼0.6440.61 ▼7.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • azameo_token

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 register_activation_hook() in wp-content/plugins/azaflash-retargeting/azaflash-retargeting.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

azaflash-retargeting/azaflash-retargeting.php 92% from 13 tests

This is the main PHP file of "Azameo" version 1.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected656 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1105129577
PO File2121872
HTML1007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods25100.00%
▷ Public methods1560.00%
▷ Protected methods00.00%
▷ Private methods1040.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected