10% adtoniq-express

Code Review | Adtoniq Express

WordPress plugin Adtoniq Express scored10%from 54 tests.

About plugin

  • Plugin page: adtoniq-express
  • Plugin version: 5.0.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2018
  • Latest release: Jun 28, 2022
  • Number of updates: 11
  • Update frequency: every 118.7 days
  • Top authors: davidadtoniq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /853 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/adtoniq-express/adtoniq.php+510
    file_get_contents(https://integration.adtoniq.com/api/v1): failed to open stream: HTTP request failed! HTTP/1.1 503 Service Temporarily Unavailable

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.05ms] Passed 4 tests

Analyzing server-side resources used by Adtoniq Express
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.66 ▲5.75
Dashboard /wp-admin3.34 ▲0.031,090.51 ▲1,043.02
Posts /wp-admin/edit.php3.39 ▲0.0347.72 ▼0.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.34 ▼6.40
Media Library /wp-admin/upload.php3.26 ▲0.0337.22 ▲0.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
adtoniq-lastVersion
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Adtoniq Express
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲20113.25 ▼1.401.90 ▲0.2636.33 ▼8.14
Dashboard /wp-admin2,315 ▲1275.94 ▲1.0799.43 ▼13.5975.04 ▲31.15
Posts /wp-admin/edit.php2,105 ▲161.97 ▼0.0434.30 ▼7.8234.59 ▼2.76
Add New Post /wp-admin/post-new.php1,527 ▲1317.70 ▲0.19643.44 ▼44.5353.65 ▲0.31
Media Library /wp-admin/upload.php1,401 ▲194.20 ▲0.0195.03 ▼0.9340.99 ▲0.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/adtoniq-express/adtoniq.php+510
    file_get_contents(https://integration.adtoniq.com/api/v1): failed to open stream: HTTP request failed! HTTP/1.1 503 Service Temporarily Unavailable

  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • adtoniq-lastVersion
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/adtoniq-express/adtoniq.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adtoniq-express/inc/alert.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adtoniq-express/inc/trublock.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adtoniq-express/inc/messenger.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adtoniq-express/inc/protection.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: ad block, ads, advertisement, ad blocker, adblocker...

adtoniq-express/adtoniq.php 85% from 13 tests

The primary PHP file in "Adtoniq Express" version 5.0.1.9 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("adtoniq-express.php" instead of "adtoniq.php")

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
There were no executable files found in this plugin2,404 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP81832851,352
JavaScript9210721,049
CSS2222
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.57
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pass.png7.29KB4.77KB▼ 34.60%
images/warn.png13.42KB6.00KB▼ 55.30%
images/fail.png9.46KB7.32KB▼ 22.58%