84% pattison-media-attribution

Code Review | Validate Audio Attribution

WordPress plugin Validate Audio Attribution scored 84% from 54 tests.

About plugin

  • Plugin page: pattison-media-at...
  • Plugin version: 1.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 8, 2021
  • Latest release: Aug 12, 2023
  • Number of updates: 11
  • Update frequency: every 69.6 days
  • Top authors: pattisonmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 704 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.67ms] Passed 4 tests

This is a short check of server-side resources used by Validate Audio Attribution
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.04 ▼1.85
Dashboard /wp-admin3.31 ▲0.0144.67 ▼4.41
Posts /wp-admin/edit.php3.36 ▲0.0148.13 ▼3.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.92 ▲0.80
Media Library /wp-admin/upload.php3.23 ▲0.0132.87 ▼0.51

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Validate Audio Attribution
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.58 ▼0.644.14 ▲2.3642.08 ▼2.10
Dashboard /wp-admin2,206 ▲185.91 ▲0.00108.35 ▼3.6341.15 ▼2.95
Posts /wp-admin/edit.php2,092 ▲172.00 ▼0.0139.35 ▼2.7435.30 ▲0.48
Add New Post /wp-admin/post-new.php1,528 ▲218.29 ▼4.80618.84 ▼58.3860.15 ▲6.32
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.08100.52 ▲1.4142.90 ▼0.34

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pattison-media-attribution/pattison-media-attribution.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
1 plugin tags: header

pattison-media-attribution/pattison-media-attribution.php Passed 13 tests

The main file in "Validate Audio Attribution" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
Enables conversion tracking for campaigns using Validate audio attribution

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

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin