Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼300.31ms] Passed 4 tests
A check of server-side resources used by ads.txt lab
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 57.74 ▲1.48 |
Dashboard /wp-admin | 3.42 ▲0.02 | 51.41 ▼19.48 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 39.48 ▲2.81 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.38 ▼1,186.06 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 48.30 ▲24.10 |
ads.txt lab /wp-admin/options-general.php?page=ads_txt_lab_admin | 3.28 | 21.82 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
ads.txt lab: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.92 ▲0.32 | 5.74 ▼0.19 | 2.33 ▼0.05 |
Dashboard /wp-admin | 2,897 ▲44 | 6.14 ▲0.01 | 120.10 ▼4.32 | 160.66 ▼1.70 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.26 ▲0.03 | 66.68 ▼46.92 | 204.25 ▲52.56 |
Add New Post /wp-admin/post-new.php | 1,701 ▲41 | 22.01 ▲5.80 | 437.95 ▲13.63 | 161.61 ▲2.77 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.52 ▲0.01 | 159.96 ▲10.97 | 191.62 ▼32.20 |
ads.txt lab /wp-admin/options-general.php?page=ads_txt_lab_admin | 1,002 | 2.39 | 53.83 | 158.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ads-txt-lab/adstxtlab.php
- > /wp-content/plugins/ads-txt-lab/views/admin.php
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: iab, adstxt, banner, advertising
ads-txt-lab/adstxtlab.php 85% from 13 tests
The entry point to "ads.txt lab" version 1.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 325 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("ads-txt-lab.php" instead of "adstxtlab.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin161 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 30 | 27 | 161 |
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 code | 0.37 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin