Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/smart-sitemap-generator/includes/class.smart-sitemap.php+24
A non well formed numeric value encountered
Server metrics [RAM: ▼1.71MB] [CPU: ▼51.54ms] Passed 4 tests
An overview of server-side resources used by Smart Sitemap Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 6.32 ▼33.64 |
Dashboard /wp-admin | 2.30 ▼1.00 | 8.04 ▼43.80 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 7.87 ▼37.27 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 7.46 ▼91.45 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 7.78 ▼23.76 |
Smart Sitemap Options /wp-admin/options-general.php?page=smart-sitemap-generator | 2.30 | 7.42 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Sitemap Generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.21 ▼1.17 | 1.74 ▼0.17 | 35.86 ▼7.88 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.23 | 106.15 ▼9.14 | 36.82 ▼7.30 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.05 | 41.53 ▲6.02 | 37.40 ▲5.08 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.37 ▲0.38 | 638.10 ▼33.05 | 65.82 ▲22.66 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.23 ▲0.02 | 96.42 ▼3.56 | 39.80 ▼7.14 |
Smart Sitemap Options /wp-admin/options-general.php?page=smart-sitemap-generator | 882 | 2.02 | 26.70 | 26.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/smart-sitemap-generator/includes/class.smart-sitemap.php+24
A non well formed numeric value encountered
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=smart-sitemap-generator
- > Notice in wp-content/plugins/smart-sitemap-generator/includes/class.smart-sitemap.php+24
A non well formed numeric value encountered
- > GET request to /wp-admin/options-general.php?page=smart-sitemap-generator
- > Warning in wp-content/plugins/smart-sitemap-generator/includes/class.smart-sitemap.php+25
array_values() expects parameter 1 to be array, null given
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smart-sitemap-generator
- > Notice in wp-content/plugins/smart-sitemap-generator/includes/class.smart-sitemap-admin.php+126
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smart-sitemap-generator
- > Warning in wp-content/plugins/smart-sitemap-generator/includes/class.smart-sitemap-admin.php+126
in_array() expects parameter 2 to be array, null given
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
The following issues need your attention
- 8× 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/smart-sitemap-generator/includes/class.smart-sitemap-admin.php:18
- > PHP Fatal error
Uncaught Error: Interface 'samdark\\sitemap\\WriterInterface' not found in wp-content/plugins/smart-sitemap-generator/vendor/samdark/sitemap/TempFileGZIPWriter.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smart-sitemap-generator/includes/class.smart-sitemap.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/smart-sitemap-generator/vendor/samdark/sitemap/tests/SitemapTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'samdark\\sitemap\\WriterInterface' not found in wp-content/plugins/smart-sitemap-generator/vendor/samdark/sitemap/DeflateWriter.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smart-sitemap-generator/includes/class.smart-sitemap.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/smart-sitemap-generator/vendor/samdark/sitemap/tests/IndexTest.php:6
- > PHP Fatal error
Uncaught Error: Interface 'samdark\\sitemap\\WriterInterface' not found in wp-content/plugins/smart-sitemap-generator/vendor/samdark/sitemap/PlainFileWriter.php:8
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: xml sitemap, yandex sitemap, sitemap, google sitemap, bing sitemap...
smart-sitemap-generator/index.php 92% from 13 tests
The entry point to "Smart Sitemap Generator" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("smart-sitemap-generator.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected6,576 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 625 | 1,320 | 2,544 |
XSD | 4 | 200 | 6 | 2,212 |
Markdown | 3 | 219 | 0 | 1,204 |
XSLT | 3 | 4 | 0 | 450 |
JSON | 1 | 0 | 0 | 120 |
YAML | 3 | 7 | 1 | 38 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 19 | 17.12% |
▷ Public methods | 90 | 81.08% |
▷ Protected methods | 4 | 3.60% |
▷ Private methods | 17 | 15.32% |
Functions | 79 | |
▷ Named functions | 74 | 93.67% |
▷ Anonymous functions | 5 | 6.33% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 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
There are no PNG files in this plugin