Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.44MB] [CPU: ▲24.38ms] 75% from 4 tests
Server-side resources used by WordPress Robots.txt optimizer (+ XML Sitemap) – Boost SEO, Traffic & Rankings
The following require your attention
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.44MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.27 ▲5.80 | 70.65 ▲31.87 |
Dashboard /wp-admin | 9.29 ▲5.94 | 71.97 ▲6.69 |
Posts /wp-admin/edit.php | 9.29 ▲5.93 | 81.26 ▲36.08 |
Add New Post /wp-admin/post-new.php | 10.00 ▲4.11 | 119.52 ▲22.87 |
Media Library /wp-admin/upload.php | 9.29 ▲6.05 | 70.00 ▲37.34 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.29 | 58.35 |
Server storage [IO: ▲6.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 323 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
fs_accounts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_debug_mode |
robots_txt |
can_compress_scripts |
fs_active_plugins |
db_upgraded |
Browser metrics Passed 4 tests
WordPress Robots.txt optimizer (+ XML Sitemap) – Boost SEO, Traffic & Rankings: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲77 | 13.53 ▼0.85 | 1.75 ▼0.03 | 38.58 ▼1.42 |
Dashboard /wp-admin | 2,248 ▲63 | 5.30 ▼0.60 | 121.43 ▲13.90 | 62.23 ▲21.67 |
Posts /wp-admin/edit.php | 2,140 ▲48 | 2.37 ▲0.33 | 37.15 ▲0.88 | 47.04 ▲11.48 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.40 ▲5.74 | 706.90 ▲58.63 | 48.31 ▼1.32 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.54 ▲0.17 | 104.36 ▲3.97 | 55.39 ▲11.97 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,111 | 1.96 | 28.73 | 42.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/better-robots-txt/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- fs_accounts
- robots_txt
- fs_debug_mode
- theysaidso_admin_options
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
Please take a closer look at the following
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/better-robots-txt/admin/views/steps/step3.view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/better-robots-txt/admin/views/steps/step4.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/better-robots-txt/admin/views/steps/step6.view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/better-robots-txt/admin/views/steps/step1.view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/better-robots-txt/admin/views/steps/step9.view.php:3
- > PHP Fatal error
Trait 'Pagup\\BetterRobots\\Traits\\RobotsHelper' not found in wp-content/plugins/better-robots-txt/admin/controllers/RobotsController.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/better-robots-txt/admin/views/inc/top.view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/better-robots-txt/admin/views/steps/step2.view.php:2
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\BetterRobots\\Controllers\\SettingsController' not found in wp-content/plugins/better-robots-txt/admin/Settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/better-robots-txt/admin/views/steps/step5.view.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=freemius
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: data is not defined" "ReferenceError: data is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/better-robots-txt/admin/assets/app.js?ver=1688856108:75:24)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=freemius
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: data is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #10, #6, #7, #8, #9 in better-robots-txt/assets to your readme.txt
better-robots-txt/better-robots-txt.php Passed 13 tests
The principal PHP file in "WordPress Robots.txt optimizer (+ XML Sitemap) – Boost SEO, Traffic & Rankings" v. 1.5.2 is loaded by WordPress automatically on each request
135 characters long description:
Better-Robots.txt plugin helps you boosting your website indexation and your ranking by adding specific instructions in your robots.txt
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin65,526 lines of code in 234 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 161 | 8,655 | 17,918 | 36,278 |
PO File | 22 | 9,637 | 11,754 | 25,798 |
Sass | 28 | 399 | 77 | 2,515 |
CSS | 15 | 101 | 17 | 636 |
JavaScript | 7 | 52 | 76 | 291 |
JSON | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 71.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 63 | |
▷ Abstract classes | 2 | 3.17% |
▷ Concrete classes | 61 | 96.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,348 | |
▷ Static methods | 224 | 16.62% |
▷ Public methods | 957 | 70.99% |
▷ Protected methods | 17 | 1.26% |
▷ Private methods | 374 | 27.74% |
Functions | 105 | |
▷ Named functions | 101 | 96.19% |
▷ Anonymous functions | 4 | 3.81% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.24MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/imgs/star-new4.png | 8.26KB | 4.80KB | ▼ 41.88% |
admin/assets/imgs/6.png | 27.18KB | 11.65KB | ▼ 57.15% |
admin/assets/imgs/5.png | 28.95KB | 8.79KB | ▼ 69.64% |
admin/assets/imgs/star2.png | 6.66KB | 4.80KB | ▼ 27.96% |
admin/assets/imgs/p12.png | 16.41KB | 7.67KB | ▼ 53.24% |