Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲5.02MB] [CPU: ▲24.85ms] 75% from 4 tests
A check of server-side resources used by Ads.txt & App-ads.txt Manager for WordPress
Please have a look at the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.02MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.90 ▲5.44 | 60.61 ▲23.87 |
Dashboard /wp-admin | 8.92 ▲5.62 | 77.23 ▲29.42 |
Posts /wp-admin/edit.php | 8.92 ▲5.57 | 84.69 ▲36.58 |
Add New Post /wp-admin/post-new.php | 9.33 ▲3.45 | 109.31 ▲14.13 |
Media Library /wp-admin/upload.php | 8.92 ▲5.70 | 67.40 ▲31.97 |
Ads.txt & App-Ads.txt /wp-admin/options-general.php?page=adtm | 8.92 | 57.01 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.92 | 56.25 |
Server storage [IO: ▲6.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 304 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
fs_debug_mode |
fs_active_plugins |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Ads.txt & App-ads.txt Manager for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 13.69 ▼1.08 | 1.57 ▼0.10 | 29.63 ▼15.28 |
Dashboard /wp-admin | 2,255 ▲66 | 4.87 ▼0.06 | 110.45 ▲0.73 | 42.42 ▼2.61 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 2.08 ▲0.06 | 41.40 ▲1.70 | 38.92 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.18 ▲0.02 | 624.47 ▼67.35 | 61.11 ▲4.80 |
Media Library /wp-admin/upload.php | 1,437 ▲52 | 4.32 ▲0.15 | 95.87 ▼7.38 | 44.19 ▼1.87 |
Ads.txt & App-Ads.txt /wp-admin/options-general.php?page=adtm | 1,499 | 2.25 | 31.36 | 63.58 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,093 | 2.27 | 23.59 | 27.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/app-ads-txt/app-ads-txt.php+138
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- fs_debug_mode
- fs_accounts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_active_plugins
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/app-ads-txt/inc/youtube-trans.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/app-ads-txt/inc/sidebar.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/app-ads-txt/inc/recommendations.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/app-ads-txt/inc/notices.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/app-ads-txt/inc/seo-recommendations.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/app-ads-txt/admin-ui-inc/app-ads-txt-inc.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/app-ads-txt/inc/main-view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/app-ads-txt/inc/faq.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/app-ads-txt/admin-ui-inc/ads-txt-inc.php:5
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #3 is missing in app-ads-txt/assets to your readme.txt
app-ads-txt/app-ads-txt.php Passed 13 tests
The primary PHP file in "Ads.txt & App-ads.txt Manager for WordPress" version 1.1.7.1 is used by WordPress to initiate all plugin functionality
132 characters long description:
App-ads.txt & Ads.txt manager allows you to create, manage & publish your app-ads.txt & ads.txt files from your WordPress dashboard.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected64,443 lines of code in 211 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 8,270 | 17,401 | 34,715 |
PO File | 31 | 8,272 | 9,769 | 24,842 |
Sass | 28 | 399 | 77 | 2,515 |
JavaScript | 7 | 412 | 256 | 1,719 |
CSS | 14 | 41 | 13 | 652 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 88.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,273 | |
▷ Static methods | 201 | 15.79% |
▷ Public methods | 884 | 69.44% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.22% |
Functions | 107 | |
▷ Named functions | 107 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.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
18 PNG files occupy 0.29MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/assets/img/vidseo.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/imgs/permalinks.png | 73.02KB | 35.94KB | ▼ 50.79% |
assets/imgs/p09.png | 6.65KB | 3.68KB | ▼ 44.60% |
vendor/freemius/assets/img/bulk-html-image-title-attribute.png | 9.16KB | 5.26KB | ▼ 42.58% |