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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.99 ▼1.53 | 5.95 ▼47.36 |
Dashboard /wp-admin | 2.01 ▼1.40 | 5.01 ▼27.97 |
Posts /wp-admin/edit.php | 2.01 ▼1.63 | 5.06 ▼31.84 |
Add New Post /wp-admin/post-new.php | 2.01 ▼4.96 | 6.10 ▼1,296.04 |
Media Library /wp-admin/upload.php | 2.01 ▼1.29 | 4.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,969 ▲215 | 15.91 ▼0.01 | 5.92 ▲0.19 | 2.26 ▲0.10 |
Dashboard /wp-admin | 3,065 ▲204 | 6.20 ▲0.01 | 118.03 ▼10.26 | 176.12 ▲19.68 |
Posts /wp-admin/edit.php | 2,708 ▲14 | 3.23 ▲0.00 | 63.07 ▲0.48 | 138.30 ▼5.89 |
Add New Post /wp-admin/post-new.php | 1,732 ▲64 | 22.42 ▲3.79 | 425.31 ▲29.69 | 152.81 ▼5.00 |
Media Library /wp-admin/upload.php | 1,721 ▲20 | 5.47 ▼0.06 | 137.79 ▼4.58 | 183.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 183 | 285 | 1,352 |
JavaScript | 9 | 210 | 72 | 1,049 |
CSS | 2 | 2 | 2 | 2 |
SVG | 1 | 0 | 0 | 1 |
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 code | 0.19 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fail.png | 9.46KB | 7.32KB | ▼ 22.58% |
images/pass.png | 7.29KB | 4.77KB | ▼ 34.60% |
images/warn.png | 13.42KB | 6.00KB | ▼ 55.30% |