Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼299.42ms] Passed 4 tests
An overview of server-side resources used by MAIRDUMONT NETLETIX ads.txt Agent
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 56.24 ▼2.94 |
Dashboard /wp-admin | 3.44 ▲0.04 | 34.18 ▼8.76 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 40.99 ▲1.27 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 93.99 ▼1,184.47 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 27.61 ▼1.51 |
MD-NX ads.txt Agent /wp-admin/options-general.php?page=nx-adstxt | 3.33 | 26.40 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options |
---|
nx_adstxt |
Browser metrics Passed 4 tests
A check of browser resources used by MAIRDUMONT NETLETIX ads.txt Agent
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,796 ▲74 | 15.80 ▲0.15 | 5.93 ▲0.54 | 2.13 ▼0.05 |
Dashboard /wp-admin | 2,890 ▲29 | 6.12 ▼0.06 | 138.53 ▼9.36 | 182.33 ▲20.51 |
Posts /wp-admin/edit.php | 2,693 ▲5 | 3.23 ▼0.01 | 63.81 ▼0.16 | 145.83 ▼8.01 |
Add New Post /wp-admin/post-new.php | 1,671 ▼46 | 18.08 ▼3.21 | 409.24 ▼26.93 | 154.97 ▼13.80 |
Media Library /wp-admin/upload.php | 1,697 ▼1 | 5.51 ▼0.02 | 138.05 ▼6.94 | 257.51 ▲63.67 |
MD-NX ads.txt Agent /wp-admin/options-general.php?page=nx-adstxt | 1,298 | 4.27 | 107.02 | 125.84 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- nx_adstxt
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: name in wp-content/plugins/nx-adstxt/admin/partials/row-url.php on line 6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nx-adstxt/admin/partials/nx-adstxt-admin-display.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nx-adstxt/admin/partials/row-url.php:10
- > PHP Notice
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add descriptions for these screenshots #1, #2 in nx-adstxt/assets to your readme.txt
nx-adstxt/nx-adstxt.php 92% from 13 tests
The main file in "MAIRDUMONT NETLETIX ads.txt Agent" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 189 characters long)
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
Everything looks great! No dangerous files found in this plugin938 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 131 | 77 | 485 |
JavaScript | 1 | 47 | 0 | 218 |
CSS | 1 | 24 | 4 | 124 |
PO File | 1 | 24 | 25 | 111 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 12 | 27.91% |
▷ Public methods | 35 | 81.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 18.60% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/logo-mdnx.png | 5.27KB | 2.72KB | ▼ 48.40% |