79% google-url-creator

Code Review | Google URL Creator

WordPress plugin Google URL Creator scored79%from 54 tests.

About plugin

  • Plugin page: google-url-creator
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Dec 31, 2013
  • Latest release: Dec 31, 2013
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: BrashRebel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.02ms] Passed 4 tests

A check of server-side resources used by Google URL Creator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.08 ▼3.18
Dashboard /wp-admin3.33 ▲0.0244.53 ▼7.55
Posts /wp-admin/edit.php3.38 ▲0.0247.59 ▼0.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.84 ▼1.18
Media Library /wp-admin/upload.php3.25 ▲0.0234.38 ▲3.39
URL Creator /wp-admin/tools.php?page=google-url-creator3.1928.20

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Google URL Creator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.28 ▼1.314.27 ▲2.4443.09 ▼3.03
Dashboard /wp-admin2,210 ▲195.85 ▼0.0398.13 ▼9.2040.45 ▼6.58
Posts /wp-admin/edit.php2,093 ▲222.05 ▲0.0339.99 ▲3.7137.10 ▲0.82
Add New Post /wp-admin/post-new.php1,539 ▲823.15 ▼0.03652.58 ▲55.9553.82 ▲3.69
Media Library /wp-admin/upload.php1,386 ▼54.23 ▲0.0594.90 ▼5.3642.22 ▼2.71
URL Creator /wp-admin/tools.php?page=google-url-creator9712.1423.1732.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=google-url-creator
    • > Notice in wp-content/plugins/google-url-creator/google-url-creator.php+24
    Undefined index: source
    • > GET request to /wp-admin/tools.php?page=google-url-creator
    • > Notice in wp-content/plugins/google-url-creator/google-url-creator.php+25
    Undefined index: medium
    • > GET request to /wp-admin/tools.php?page=google-url-creator
    • > Notice in wp-content/plugins/google-url-creator/google-url-creator.php+26
    Undefined index: term
    • > GET request to /wp-admin/tools.php?page=google-url-creator
    • > Notice in wp-content/plugins/google-url-creator/google-url-creator.php+27
    Undefined index: content
    • > GET request to /wp-admin/tools.php?page=google-url-creator
    • > Notice in wp-content/plugins/google-url-creator/google-url-creator.php+28
    Undefined index: name
    • > GET request to /wp-admin/tools.php?page=google-url-creator
    • > Notice in wp-content/plugins/google-url-creator/google-url-creator.php+36
    Undefined index: select-page

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
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 add_action() in wp-content/plugins/google-url-creator/google-url-creator.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: keywords, ppc, seo, google adwords, sem...

google-url-creator/google-url-creator.php Passed 13 tests

The main PHP script in "Google URL Creator" version 1.0.1 is automatically included on every request by WordPress
84 characters long description:
Generate custom URL strings that can be used to track campaigns in Google Analytics.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin143 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1714143

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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

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