10% adtoniq-express

Code Review | Adtoniq Express

WordPress plugin Adtoniq Express scored 10% 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: 5.9.2
  • First release: Dec 1, 2018
  • Latest release: Apr 15, 2021
  • Number of updates: 10
  • Update frequency: every 86.7 days
  • Top authors: davidadtoniq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 621 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/adtoniq-express/inc/messenger.php+156
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼2.38MB] [CPU: ▼350.80ms] Passed 4 tests

An overview of server-side resources used by Adtoniq Express
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.99 ▼1.535.95 ▼47.36
Dashboard /wp-admin2.01 ▼1.405.01 ▼27.97
Posts /wp-admin/edit.php2.01 ▼1.635.06 ▼31.84
Add New Post /wp-admin/post-new.php2.01 ▼4.966.10 ▼1,296.04
Media Library /wp-admin/upload.php2.01 ▼1.294.55 ▼22.98

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 1 new option
New WordPress options
adtoniq-lastVersion

Browser metrics Passed 4 tests

Checking browser requirements for Adtoniq Express
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,969 ▲21515.91 ▼0.015.92 ▲0.192.26 ▲0.10
Dashboard /wp-admin3,065 ▲2046.20 ▲0.01118.03 ▼10.26176.12 ▲19.68
Posts /wp-admin/edit.php2,708 ▲143.23 ▲0.0063.07 ▲0.48138.30 ▼5.89
Add New Post /wp-admin/post-new.php1,732 ▲6422.42 ▲3.79425.31 ▲29.69152.81 ▼5.00
Media Library /wp-admin/upload.php1,721 ▲205.47 ▼0.06137.79 ▼4.58183.79 ▼5.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/adtoniq-express/inc/messenger.php+156
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • Zombie WordPress options were found after uninstall: 1 option
    • adtoniq-lastVersion

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: adblocker, blocker, ad block, ad blocking, adblock...

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

The principal PHP file in "Adtoniq Express" v. 5.0.1.9 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("adtoniq-express.php" instead of "adtoniq.php")
  • Description: The description should be shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,404 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP81832851,352
JavaScript9210721,049
CSS2222
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

Using a strong compression for your PNG files is a great way to speed-up 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/fail.png9.46KB7.32KB▼ 22.58%
images/pass.png7.29KB4.77KB▼ 34.60%
images/warn.png13.42KB6.00KB▼ 55.30%