Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.61ms] Passed 4 tests
This is a short check of server-side resources used by XML Sitemap for PDFs for Yoast SEO
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.76 ▼2.03 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.53 ▼1.67 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.91 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.21 ▼7.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.20 ▲1.63 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
XML Sitemap for PDFs for Yoast SEO: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.19 ▼0.16 | 1.61 ▲0.03 | 41.06 ▼1.30 |
Dashboard /wp-admin | 2,195 ▲17 | 5.63 ▼0.12 | 86.05 ▼15.91 | 37.32 ▼1.49 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 35.49 ▼0.60 | 31.66 ▼6.75 |
Add New Post /wp-admin/post-new.php | 1,528 ▼9 | 23.10 ▲4.82 | 598.32 ▼55.44 | 53.24 ▼40.19 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.19 ▼0.04 | 96.95 ▼5.68 | 40.29 ▼2.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/pdf-sitemap/pdf-sitemap.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 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
3 plugin tags: seo, pdfs, xml-sitemaps
pdf-sitemap/pdf-sitemap.php Passed 13 tests
This is the main PHP file of "XML Sitemap for PDFs for Yoast SEO" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
Creates an XML sitemap for PDFs, requires Yoast SEO.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin322 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 76 | 118 |
XSLT | 1 | 15 | 0 | 114 |
JSON | 1 | 0 | 0 | 61 |
Markdown | 1 | 20 | 0 | 29 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 63.64% |
▷ Protected methods | 1 | 9.09% |
▷ Private methods | 3 | 27.27% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin