84% ads-for-visual-composer

Code Review | Advanced Ads for WPBakery Page Builder

WordPress plugin Advanced Ads for WPBakery Page Builder scored 84% from 54 tests.

About plugin

  • Plugin page: ads-for-visual-co...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Apr 3, 2023
  • Number of updates: 32
  • Update frequency: every 77.6 days
  • Top authors: webzunft (78.13%)advancedads (25%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 65,913 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Advanced Ads for WPBakery Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.16 ▼4.46
Dashboard /wp-admin3.32 ▲0.0147.21 ▼2.91
Posts /wp-admin/edit.php3.37 ▲0.0143.95 ▼4.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.81 ▼8.89
Media Library /wp-admin/upload.php3.24 ▲0.0135.31 ▲1.51

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Ads for WPBakery Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.29 ▼0.981.89 ▼0.1946.39 ▲2.27
Dashboard /wp-admin2,229 ▲445.83 ▼0.08102.12 ▼2.7039.98 ▼5.32
Posts /wp-admin/edit.php2,111 ▲192.04 ▲0.0341.70 ▲5.8238.05 ▲6.27
Add New Post /wp-admin/post-new.php1,570 ▲2518.09 ▼5.13633.44 ▼24.1267.37 ▲6.14
Media Library /wp-admin/upload.php1,414 ▲264.21 ▲0.0597.55 ▲2.5242.23 ▲1.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ads-for-visual-composer/advanced-ads-vc.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: wp bakery, banner, ads, wpbakery, amazon...

ads-for-visual-composer/advanced-ads-vc.php 85% from 13 tests

The entry point to "Advanced Ads for WPBakery Page Builder" version 1.0.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ads-for-visual-composer.php" instead of "advanced-ads-vc.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 detected103 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21740103

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png1.98KB1.30KB▼ 34.22%