71% advertentieplanet-for-woocommerce

Code Review | AdvertentiePlanet for WooCommerce

WordPress plugin AdvertentiePlanet for WooCommerce scored71%from 54 tests.

About plugin

  • Plugin page: advertentieplanet...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7
  • WordPress version: 6.3.1
  • First release: Jan 20, 2017
  • Latest release: Apr 3, 2019
  • Number of updates: 7
  • Update frequency: every 114.4 days
  • Top authors: easyads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,244 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by AdvertentiePlanet for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.00 ▼3.74
Dashboard /wp-admin3.31 ▲0.0147.59 ▼0.83
Posts /wp-admin/edit.php3.36 ▲0.0044.62 ▼0.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.18 ▲3.14
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▲1.28
AdvertentiePlanet /wp-admin/options-general.php?page=advertentieplanet3.1730.37

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by AdvertentiePlanet for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.25 ▼1.361.77 ▼0.4143.02 ▼5.25
Dashboard /wp-admin2,210 ▲195.90 ▲0.80110.38 ▼9.8642.75 ▲0.81
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0233.85 ▼3.1835.28 ▼2.74
Add New Post /wp-admin/post-new.php1,536 ▲1723.22 ▼0.19690.49 ▲21.3852.64 ▼1.00
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.0198.53 ▲0.0941.56 ▼0.85
AdvertentiePlanet /wp-admin/options-general.php?page=advertentieplanet8872.0424.8825.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • advertentieplanet_status

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=advertentieplanet
    • > Notice in wp-content/plugins/advertentieplanet-for-woocommerce/options/easyads-options.php+40
    Undefined index: connect

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advertentieplanet-for-woocommerce/options/tabs/easyads-tab-log.php
    • > /wp-content/plugins/advertentieplanet-for-woocommerce/options/tabs/easyads-tab-about.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ADVERTENTIEPLANET_PLUGIN_VERSION - assumed 'ADVERTENTIEPLANET_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/advertentieplanet-for-woocommerce/options/tabs/easyads-tab-status.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function advertentiePlanet_getConnectionStatus() in wp-content/plugins/advertentieplanet-for-woocommerce/options/tabs/easyads-tab-status.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advertentieplanet-for-woocommerce/options/easyads-options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/advertentieplanet-for-woocommerce/easyads-config.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/advertentieplanet-for-woocommerce/easyads-config.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 76% from 29 tests

readme.txt 81% from 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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Donate link: Please fix this invalid URI: ""
  • Plugin Name: You should set the name of your plugin on the first line ( === advertentieplanet-for-woocommerce === )
You can look at the official readme.txt

advertentieplanet-for-woocommerce/advertentieplanet.php 69% from 13 tests

This is the main PHP file of "AdvertentiePlanet for WooCommerce" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 165 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advertentieplanet-for-woocommerce.php" instead of "advertentieplanet.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin365 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions16100.00%
▷ Anonymous functions00.00%
▷ Global constants11100.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
There were not PNG files found in your plugin