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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.76ms] Passed 4 tests
An overview of server-side resources used by PurpleAds Ads.txt Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.30 ▼0.94 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.24 ▼7.04 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 59.08 ▲8.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 100.37 ▲1.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.37 ▼4.31 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
PurpleAds Ads.txt Manager: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲9 | 13.11 ▼0.52 | 1.65 ▼0.41 | 45.67 ▼0.26 |
Dashboard /wp-admin | 2,229 ▲23 | 4.91 ▲0.06 | 98.39 ▼14.85 | 41.04 ▼1.41 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 1.99 ▼0.02 | 41.56 ▲6.37 | 36.01 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.14 ▼0.13 | 676.37 ▲47.22 | 56.19 ▲2.45 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.18 ▼0.03 | 95.97 ▼1.77 | 45.58 ▲2.82 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: publishers, adstxt, advertising, ad network
purpleads-ads-txt-manager/purpleads.php 85% from 13 tests
Analyzing the main PHP file in "PurpleAds Ads.txt Manager" version 1.0.1
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("purpleads-ads-txt-manager.php" instead of "purpleads.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
There were no executable files found in this plugin95 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 9 | 72 |
CSS | 1 | 1 | 1 | 22 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 0 | |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.55MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 15.83KB | 6.33KB | ▼ 60.00% |
assets/icon-1200.png | 41.78KB | 17.11KB | ▼ 59.04% |
assets/banner-sm.png | 21.60KB | 7.93KB | ▼ 63.28% |
assets/icon-128x128.png | 8.96KB | 3.67KB | ▼ 59.02% |
assets/icon-128.png | 8.96KB | 3.67KB | ▼ 59.02% |