Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼146.64ms] Passed 4 tests
A check of server-side resources used by Ads.txt Publisher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 37.78 ▲15.46 |
Dashboard /wp-admin | 3.13 ▲0.08 | 38.98 ▼12.08 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 49.27 ▲0.39 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 95.00 ▼584.29 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 42.73 ▲9.44 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Ads.txt Publisher
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲119 | 16.03 ▲0.56 | 10.26 ▲0.71 | 47.04 ▼1.89 |
Dashboard /wp-admin | 3,002 ▲65 | 6.26 ▲0.30 | 163.43 ▲14.50 | 110.04 ▼5.30 |
Posts /wp-admin/edit.php | 2,775 ▲36 | 2.73 ▲0.01 | 67.18 ▼5.03 | 90.28 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,710 ▲27 | 18.33 ▼0.54 | 421.27 ▲3.40 | 140.90 ▲33.99 |
Media Library /wp-admin/upload.php | 1,843 ▲36 | 5.08 ▲0.05 | 153.30 ▼9.16 | 109.87 ▼0.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/authorized-sellers-manager/admin/partials/ads-txt-publisher-new-user-email.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/authorized-sellers-manager/admin/partials/ads-txt-publisher-admin-display.php:15
- > 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 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: publisher, adstxt, ads
authorized-sellers-manager/ads-txt-publisher.php 77% from 13 tests
The primary PHP file in "Ads.txt Publisher" version 1.0.16 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 164 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("authorized-sellers-manager.php" instead of "ads-txt-publisher.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,372 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 105 | 46 | 512 |
PHP | 11 | 144 | 421 | 501 |
Sass | 1 | 46 | 1 | 200 |
CSS | 1 | 8 | 0 | 154 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 26 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin