Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.18ms] Passed 4 tests
Analyzing server-side resources used by Light-XML Sitemap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 43.11 ▼2.48 |
Dashboard /wp-admin | 3.37 ▲0.06 | 56.85 ▲2.19 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 53.58 ▲5.53 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.57 ▼2.50 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.40 ▲2.08 |
Light-XML Sitemap /wp-admin/options-general.php?page=light-xml-sitemap-admin | 3.32 | 31.96 |
Server storage [IO: ▲1.17MB] [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: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
_light_xml_sitemap |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Light-XML Sitemap
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.34 ▼0.38 | 1.90 ▼0.04 | 43.86 ▲0.07 |
Dashboard /wp-admin | 2,199 ▲25 | 5.53 ▼0.13 | 92.09 ▲1.46 | 38.71 ▼7.29 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.04 | 35.07 ▼4.78 | 34.44 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.25 ▲5.09 | 617.30 ▼36.48 | 59.11 ▼7.12 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.09 | 99.15 ▼7.02 | 43.59 ▲1.43 |
Light-XML Sitemap /wp-admin/options-general.php?page=light-xml-sitemap-admin | 1,024 | 2.00 | 24.79 | 56.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/light-xml-sitemap/admin/partials/light-xml-sitemap-admin-options.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/light-xml-sitemap/public/partials/light-xml-sitemap-public-display.php:13
- > 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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (A general view of the plugin "options" page.)
light-xml-sitemap/light-xml-sitemap.php Passed 13 tests
"Light-XML Sitemap" version 2.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
125 characters long description:
Light-XML Sitemap dynamically creates dynamic XML Sitemap that comply with Google, Bing, Yahoo! and Ask.com Sitemap protocol.
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin1,590 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 118 | 44 | 737 |
PHP | 12 | 127 | 534 | 728 |
XSLT | 2 | 0 | 0 | 99 |
JavaScript | 2 | 1 | 0 | 26 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 3.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 68.85KB | 18.70KB | ▼ 72.85% |