Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.83ms] Passed 4 tests
A check of server-side resources used by Ads.txt
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.01 ▼3.26 |
Dashboard /wp-admin | 3.36 ▲0.01 | 56.73 ▼7.40 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 56.49 ▲5.48 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.56 ▼5.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.68 ▲0.88 |
Server storage [IO: ▲6.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Ads.txt
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲213 | 14.97 ▲0.60 | 2.02 ▲0.03 | 43.92 ▼2.40 |
Dashboard /wp-admin | 2,385 ▲194 | 6.64 ▲0.79 | 139.82 ▲32.40 | 42.28 ▼2.37 |
Posts /wp-admin/edit.php | 2,292 ▲203 | 3.62 ▲1.63 | 57.24 ▲20.29 | 36.52 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,680 ▲161 | 22.42 ▼0.79 | 651.66 ▼31.82 | 42.97 ▼12.94 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.37 ▲0.14 | 86.23 ▼33.95 | 46.49 ▼3.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monetizemore-ads-txt/modules/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monetizemore-ads-txt/modules/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monetizemore-ads-txt/modules/scripts.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/monetizemore-ads-txt/modules/hooks.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
monetizemore-ads-txt/wp-ads-txt.php 92% from 13 tests
"Ads.txt" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("monetizemore-ads-txt.php" instead of "wp-ads-txt.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 plugin19,368 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 1,213 | 239 | 12,784 |
JavaScript | 6 | 1,113 | 872 | 3,598 |
Sass | 13 | 19 | 22 | 1,158 |
LESS | 13 | 19 | 31 | 1,149 |
SVG | 1 | 0 | 0 | 504 |
PHP | 4 | 82 | 68 | 175 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/inc/assets/css/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
modules/inc/assets/icon-128x128.png | 15.18KB | 4.78KB | ▼ 68.53% |
modules/inc/assets/css/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
modules/inc/assets/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
modules/inc/assets/icon-256x256.png | 49.65KB | 12.78KB | ▼ 74.26% |