Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.71ms] Passed 4 tests
Server-side resources used by MAIRDUMONT NETLETIX ads.txt Agent
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.17 ▼5.67 |
Dashboard /wp-admin | 3.33 ▲0.03 | 41.54 ▼3.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.44 ▼7.73 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.07 ▲5.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 40.98 ▲10.96 |
MD-NX ads.txt Agent /wp-admin/options-general.php?page=nx-adstxt | 3.26 | 31.85 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
nx_adstxt |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for MAIRDUMONT NETLETIX ads.txt Agent
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 14.75 ▲0.36 | 1.66 ▼0.36 | 37.92 ▼7.56 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.98 | 113.24 ▼22.46 | 43.19 ▼0.16 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.02 | 38.85 ▼6.25 | 34.10 ▼7.49 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.32 ▲0.19 | 696.25 ▲83.71 | 54.31 ▲7.87 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▲0.00 | 117.02 ▲17.37 | 44.04 ▼0.42 |
MD-NX ads.txt Agent /wp-admin/options-general.php?page=nx-adstxt | 1,090 | 3.43 | 82.52 | 41.75 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- nx_adstxt
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
- 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 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in nx-adstxt/assets to your readme.txt
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
nx-adstxt/nx-adstxt.php 92% from 13 tests
The entry point to "MAIRDUMONT NETLETIX ads.txt Agent" version 1.0.1 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 189 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were 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
A short review of cyclomatic complexity and code structure
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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% |