Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.67ms] Passed 4 tests
Server-side resources used by ads.txt lab
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.42 ▲4.35 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.70 ▼15.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.45 ▼6.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.03 ▼9.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.94 ▲0.83 |
ads.txt lab /wp-admin/options-general.php?page=ads_txt_lab_admin | 3.24 | 30.91 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for ads.txt lab
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.33 ▼1.05 | 1.61 ▲0.03 | 39.76 ▼0.46 |
Dashboard /wp-admin | 2,210 ▲22 | 5.84 ▲0.91 | 98.54 ▼9.56 | 39.30 ▼4.01 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.01 | 37.07 ▼4.47 | 33.92 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.43 ▼0.91 | 637.61 ▼1.15 | 53.16 ▼2.36 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.01 | 95.50 ▲0.67 | 39.86 ▼3.84 |
ads.txt lab /wp-admin/options-general.php?page=ads_txt_lab_admin | 778 | 2.03 | 22.92 | 23.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ads-txt-lab/views/admin.php
- > /wp-content/plugins/ads-txt-lab/adstxtlab.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: iab, banner, advertising, adstxt
ads-txt-lab/adstxtlab.php 85% from 13 tests
The principal PHP file in "ads.txt lab" v. 1.5 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 325 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ads-txt-lab.php" instead of "adstxtlab.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
Success! There were no dangerous 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
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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
No PNG files were detected