78% google-ads-master

Code Review | TechGasp Ads Master

WordPress plugin TechGasp Ads Master scored78%from 54 tests.

About plugin

  • Plugin page: google-ads-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jul 7, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 59
  • Update frequency: every 47.5 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

200+ active /68,431 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.66ms] Passed 4 tests

Server-side resources used by TechGasp Ads Master
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1045.64 ▼14.85
Dashboard /wp-admin3.41 ▲0.1049.98 ▼11.48
Posts /wp-admin/edit.php3.52 ▲0.1650.66 ▼0.84
Add New Post /wp-admin/post-new.php5.99 ▲0.10100.87 ▼3.45
Media Library /wp-admin/upload.php3.33 ▲0.1043.92 ▲5.85
Add-ons /wp-admin/admin.php?page=google-ads-master-admin-addons3.3235.16
Ads Master /wp-admin/admin.php?page=google-ads-master3.3235.51

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_google_ads_master_widget_ads
widget_recent-comments
widget_google_ads_master_widget_viral
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for TechGasp Ads Master
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.28 ▼0.071.64 ▼0.8141.27 ▼18.88
Dashboard /wp-admin2,206 ▲295.65 ▼0.01113.20 ▲11.0279.58 ▲35.91
Posts /wp-admin/edit.php2,132 ▲322.11 ▲0.0738.66 ▼0.1634.03 ▼1.74
Add New Post /wp-admin/post-new.php1,711 ▲18024.35 ▲1.63716.82 ▲33.1458.99 ▲9.56
Media Library /wp-admin/upload.php1,423 ▲264.17 ▼0.06116.46 ▲10.3377.73 ▲31.90
Add-ons /wp-admin/admin.php?page=google-ads-master-admin-addons9912.0328.0531.87
Ads Master /wp-admin/admin.php?page=google-ads-master1,7787.60193.16100.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • widget_google_ads_master_widget_viral
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_google_ads_master_widget_ads

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/google-ads-master/includes/google-ads-master-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-ads-master/includes/google-ads-master-widget-viral.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/google-ads-master/includes/google-ads-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/google-ads-master/google-ads-master.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/google-ads-master/includes/google-ads-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/google-ads-master/includes/google-ads-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/google-ads-master/includes/google-ads-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-ads-master/includes/google-ads-master-widget-ads.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=google-ads-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=google-ads-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=google-ads-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=google-ads-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

google-ads-master/google-ads-master.php Passed 13 tests

The primary PHP file in "TechGasp Ads Master" version 5.1.4 is used by WordPress to initiate all plugin functionality
118 characters long description:
TechGasp Ads Master for wordpress is the professional plugin you need to generate google ads income with your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin576 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP103572576

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
9 PNG files occupy 0.28MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%
images/techgasp-admin-addons-support.png15.84KB14.85KB▼ 6.26%
images/techgasp-admin-addons-widgets.png17.08KB16.02KB▼ 6.22%
images/techgasp-admin-addons-shortcodes.png21.28KB20.24KB▼ 4.91%
images/techgasp-check-yes.png22.22KB7.59KB▼ 65.83%