Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-includes/class-wpdb.php+789
Undefined property: wpdb::$dmtable
Server metrics [RAM: ▼1.54MB] [CPU: ▼52.69ms] Passed 4 tests
Server-side resources used by Robots & Sitemap
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼1.02 | 8.93 ▼34.63 |
Dashboard /wp-admin | 2.47 ▼0.84 | 10.53 ▼44.34 |
Posts /wp-admin/edit.php | 2.47 ▼0.89 | 12.71 ▼37.80 |
Add New Post /wp-admin/post-new.php | 2.47 ▼3.42 | 10.77 ▼93.97 |
Media Library /wp-admin/upload.php | 2.47 ▼0.76 | 11.40 ▼29.14 |
VO3DA Plugins /wp-admin/admin.php?page=vo3da-plugins | 2.47 | 12.37 |
Robots & Sitemap /wp-admin/admin.php?page=vo3da-robots-sitemap | 2.47 | 9.33 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Robots & Sitemap: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.37 ▲0.19 | 1.82 ▲0.18 | 40.31 ▲2.74 |
Dashboard /wp-admin | 2,244 ▲70 | 5.57 ▼0.10 | 103.35 ▲8.15 | 39.42 ▼4.40 |
Posts /wp-admin/edit.php | 2,149 ▲52 | 2.02 ▼0.01 | 42.35 ▲3.49 | 34.76 ▼4.93 |
Add New Post /wp-admin/post-new.php | 6,385 ▲4,859 | 26.09 ▲2.91 | 967.55 ▲257.16 | 64.75 ▲11.42 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.24 ▼0.00 | 99.10 ▼14.17 | 48.75 ▲2.10 |
VO3DA Plugins /wp-admin/admin.php?page=vo3da-plugins | 28 | 0.42 | 0.15 | 4.48 |
Robots & Sitemap /wp-admin/admin.php?page=vo3da-robots-sitemap | 2,390 | 3.39 | 77.23 | 45.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-includes/class-wpdb.php+789
Undefined property: wpdb::$dmtable
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-includes/class-wpdb.php+789
Undefined property: wpdb::$dmtable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+104
Undefined index: separation_enable
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/core/robots/class-robots-file.php+125
Trying to access array offset on value of type bool
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+33
Undefined index: post_tag_prioriti
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+45
Undefined index: post_tag_frequencies
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+55
Undefined index: post_tag_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+71
Undefined index: sitemap_dateformat
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+82
Undefined index: sitemap_disable
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+93
Undefined index: img_enable
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+115
Undefined index: sitemapimg_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+146
Undefined index: sitemapnews_enable
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/sitemap.php+172
Undefined index: sitemapnews_cat
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/robots.php+25
Undefined index: disable_robots
- > GET request to /wp-admin/admin.php?page=vo3da-robots-sitemap
- > Notice in wp-content/plugins/robots-sitemap/admin/views/components/robots.php+36
Undefined index: fake_enable
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
Please fix the following items
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: nonce_field in wp-content/plugins/robots-sitemap/admin/views/components/term-metabox.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Robots_Sitemap\\Core\\Sitemap\\Sitemap' not found in wp-content/plugins/robots-sitemap/core/sitemap/class-sitemap-post-type.php:15
- > PHP Fatal error
Uncaught Error: Class 'Robots_Sitemap\\Core\\Db\\Sitemap_DB' not found in wp-content/plugins/robots-sitemap/core/db/news/class-sitemap-news-item-repository.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/robots-sitemap/admin/views/components/term-metabox.php:6
- > PHP Fatal error
Uncaught Error: Class 'Robots_Sitemap\\Core\\Db\\Sitemap_DB' not found in wp-content/plugins/robots-sitemap/core/db/term/class-sitemap-term-item-repository.php:19
- > PHP Fatal error
Uncaught Error: Class 'Robots_Sitemap\\Core\\Cache\\Sitemap_Cache' not found in wp-content/plugins/robots-sitemap/core/cache/class-sitemap-cache-news.php:18
- > PHP Fatal error
Uncaught Error: Class 'Robots_Sitemap\\Core\\Db\\Post\\Sitemap_Post_Item' not found in wp-content/plugins/robots-sitemap/core/db/image/class-sitemap-image-item.php:19
- > PHP Fatal error
Uncaught Error: Class 'Robots_Sitemap\\Core\\Db\\Sitemap_DB' not found in wp-content/plugins/robots-sitemap/core/db/post/class-sitemap-post-item-repository.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/robots-sitemap/admin/views/components/metabox.php:3
- > PHP Fatal error
Uncaught Error: Class 'Robots_Sitemap\\Core\\Cache\\Sitemap_Cache' not found in wp-content/plugins/robots-sitemap/core/cache/class-sitemap-cache-post.php:18
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=vo3da-plugins
- > Network (severe)
wp-admin/admin.php?page=vo3da-plugins - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: sitemap by type, seo, indexing, robots, xml...
robots-sitemap/robots-sitemap.php Passed 13 tests
The primary PHP file in "Robots & Sitemap" version 1.3.0 is used by WordPress to initiate all plugin functionality
49 characters long description:
Simply and fast edit your robots.txt and sitemap.
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
No dangerous file extensions were detected4,181 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 735 | 2,297 | 3,216 |
XML | 4 | 60 | 0 | 629 |
JavaScript | 4 | 5 | 11 | 179 |
PO File | 1 | 60 | 71 | 141 |
SVG | 1 | 0 | 0 | 8 |
CSS | 2 | 1 | 0 | 7 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 3 | 7.89% |
▷ Concrete classes | 35 | 92.11% |
▷ Final classes | 0 | 0.00% |
Methods | 234 | |
▷ Static methods | 9 | 3.85% |
▷ Public methods | 150 | 64.10% |
▷ Protected methods | 40 | 17.09% |
▷ Private methods | 44 | 18.80% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
admin/assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
admin/assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/assets/images/search.png | 0.33KB | 0.39KB | 0.00% |