Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼294.17ms] Passed 4 tests
Server-side resources used by Ad Refresh Control
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.21 | 52.47 ▲0.04 |
Dashboard /wp-admin | 3.57 ▲0.16 | 34.81 ▲0.66 |
Posts /wp-admin/edit.php | 3.80 ▲0.15 | 37.66 ▼3.70 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.06 | 93.53 ▼1,172.27 |
Media Library /wp-admin/upload.php | 3.45 ▲0.15 | 25.33 ▼0.75 |
Ad Refresh Control /wp-admin/options-general.php?page=ad-refresh-control-settings | 3.42 | 24.45 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ad Refresh Control
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,775 ▲53 | 16.19 ▲0.53 | 7.95 ▲2.19 | 2.62 ▲0.36 |
Dashboard /wp-admin | 2,897 ▲36 | 6.09 ▼0.07 | 118.35 ▼15.20 | 158.61 ▼6.24 |
Posts /wp-admin/edit.php | 2,690 ▲5 | 3.24 ▲0.01 | 64.85 ▲1.67 | 140.52 ▲2.07 |
Add New Post /wp-admin/post-new.php | 1,664 ▼88 | 17.57 ▼4.09 | 429.56 ▼32.38 | 162.35 ▲4.91 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.52 ▲0.02 | 148.56 ▼9.19 | 185.48 ▼17.71 |
Ad Refresh Control /wp-admin/options-general.php?page=ad-refresh-control-settings | 1,144 | 2.38 | 54.99 | 116.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ad-refresh-control/ad-refresh-control.php:21
- > PHP Fatal error
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 96% 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
2 plugin tags: google, ad manager
ad-refresh-control/ad-refresh-control.php 92% from 13 tests
This is the main PHP file of "Ad Refresh Control" version 1.0.5, 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:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
Good job! No executable or dangerous file extensions detected1,117 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 219 | 478 | 928 |
JavaScript | 3 | 35 | 56 | 167 |
CSS | 9 | 11 | 26 | 17 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 24.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 18 | 45.00% |
▷ Public methods | 38 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.00% |
Functions | 31 | |
▷ Named functions | 23 | 74.19% |
▷ Anonymous functions | 8 | 25.81% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected