Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.66ms] Passed 4 tests
Analyzing server-side resources used by Ads.txt Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.62 ▲2.69 |
Dashboard /wp-admin | 3.35 ▲0.01 | 51.39 ▼6.21 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.42 ▼2.51 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 99.60 ▼0.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.94 ▲2.55 |
App-ads.txt /wp-admin/options-general.php?page=app-adstxt-settings | 3.29 | 40.84 |
Ads.txt /wp-admin/options-general.php?page=adstxt-settings | 3.29 | 38.87 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
adstxt_post |
app_adstxt_post |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ads.txt Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.20 ▼1.03 | 1.70 ▲0.01 | 39.40 ▼1.56 |
Dashboard /wp-admin | 2,211 ▲23 | 4.85 ▼0.08 | 109.22 ▲0.90 | 41.56 ▼1.52 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.01 ▼0.01 | 39.06 ▼1.76 | 35.55 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.45 ▲5.07 | 643.89 ▲31.59 | 62.00 ▲11.70 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.30 ▲0.08 | 110.49 ▲7.38 | 45.66 ▼0.92 |
App-ads.txt /wp-admin/options-general.php?page=app-adstxt-settings | 1,000 | 3.56 | 84.75 | 44.02 |
Ads.txt /wp-admin/options-general.php?page=adstxt-settings | 997 | 3.49 | 71.04 | 34.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- adstxt_post
- app_adstxt_post
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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)
Good news, no errors were detected
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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Adstxt\\add_action() in wp-content/plugins/ads-txt/inc/post-type.php:70
- > PHP Fatal error
Uncaught Error: Call to undefined function AdsTxt\\add_action() in wp-content/plugins/ads-txt/inc/admin.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function Adstxt\\add_action() in wp-content/plugins/ads-txt/inc/save.php:82
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
7 plugin tags: app-adstxt, publishers, advertising, adstxt, publishing...
ads-txt/ads-txt.php Passed 13 tests
Analyzing the main PHP file in "Ads.txt Manager" version 1.4.3
137 characters long description:
Create, manage, and validate your Ads.txt from within WordPress, just like any other content asset. Requires PHP 7.4+ and WordPress 5.7+.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected724 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 131 | 221 | 629 |
JavaScript | 1 | 21 | 5 | 92 |
CSS | 1 | 0 | 0 | 3 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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