78% agenturbo-google-remarketing

Code Review | Google Remarketing

WordPress plugin Google Remarketing scored78%from 54 tests.

About plugin

  • Plugin page: agenturbo-google-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: Jun 10, 2017
  • Latest release: Jun 10, 2017
  • Number of updates: 10
  • Update frequency: every 0.5 days
  • Top authors: onma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /949 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.49ms] Passed 4 tests

A check of server-side resources used by Google Remarketing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.53 ▼3.57
Dashboard /wp-admin3.35 ▲0.0544.18 ▼8.08
Posts /wp-admin/edit.php3.40 ▲0.0450.08 ▲2.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0593.72 ▼6.34
Media Library /wp-admin/upload.php3.27 ▲0.0438.01 ▲0.03
Google Remarketing /wp-admin/options-general.php?page=googleremarketing3.2134.79

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Google Remarketing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.16 ▼1.211.92 ▼0.0448.72 ▲2.53
Dashboard /wp-admin2,210 ▲224.88 ▼1.01100.47 ▼4.2138.51 ▼5.57
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0543.11 ▲4.4735.10 ▼0.10
Add New Post /wp-admin/post-new.php6,241 ▲4,72021.80 ▼1.39946.49 ▲241.3458.98 ▲6.48
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0893.83 ▼26.4645.80 ▼4.10
Google Remarketing /wp-admin/options-general.php?page=googleremarketing8242.0329.2428.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=googleremarketing
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=googleremarketing
    • > 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/agenturbo-google-remarketing/onma-google-remarketing.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Setting Page.), #2 (New meta box that shows on the add/edit forms), #3 (View source of the embed)
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

agenturbo-google-remarketing/onma-google-remarketing.php 92% from 13 tests

The main file in "Google Remarketing" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("agenturbo-google-remarketing.php" instead of "onma-google-remarketing.php")

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
Good job! No executable or dangerous file extensions detected175 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin