68% attribution-query-string-manager

Code Review | Attribution Query String Manager

WordPress plugin Attribution Query String Manager scored68%from 54 tests.

About plugin

  • Plugin page: attribution-query...
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Dec 11, 2013
  • Latest release: Jun 2, 2014
  • Number of updates: 8
  • Update frequency: every 21.6 days
  • Top authors: kasigi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,281 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.34MB] [CPU: ▼0.78ms] Passed 4 tests

An overview of server-side resources used by Attribution Query String Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3542.46 ▲3.45
Dashboard /wp-admin3.68 ▲0.3854.24 ▲7.29
Posts /wp-admin/edit.php3.73 ▲0.3750.95 ▲3.42
Add New Post /wp-admin/post-new.php6.22 ▲0.3383.52 ▼15.09
Media Library /wp-admin/upload.php3.54 ▲0.3137.69 ▲5.10
Query String Manager /wp-admin/options-general.php?page=aqsm-settings3.4935.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Attribution Query String Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.73 ▼0.651.61 ▼0.1340.43 ▼0.47
Dashboard /wp-admin2,214 ▲295.81 ▼0.0593.43 ▼4.4238.94 ▲0.52
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0339.63 ▲5.7434.34 ▼1.45
Add New Post /wp-admin/post-new.php6,182 ▲4,64424.96 ▲1.78920.23 ▲234.8053.73 ▼3.60
Media Library /wp-admin/upload.php1,399 ▲144.21 ▲0.0096.12 ▼5.1642.15 ▼0.56
Query String Manager /wp-admin/options-general.php?page=aqsm-settings9351.7122.9630.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/attribution-query-string-manager/includes/aqsm_engine_init.php+23
    Undefined index: AQSM_TrackingQSVars
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • aqsm_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=aqsm-settings
    • > 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=aqsm-settings
    • > 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/attribution-query-string-manager/aqsm.php:16

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: posts, link, page, ads, links...

attribution-query-string-manager/aqsm.php 85% from 13 tests

The principal PHP file in "Attribution Query String Manager" v. 0.1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 244 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("attribution-query-string-manager.php" instead of "aqsm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,900 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP63683771,755
JavaScript1509131
CSS17114

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity164.50
▷ Minimum class complexity131.00
▷ Maximum class complexity198.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods11.18%
▷ Public methods6981.18%
▷ Protected methods1618.82%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants26100.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
PNG images were not found in this plugin