Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.10ms] Passed 4 tests
This is a short check of server-side resources used by Wppao Sitemap
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 44.37 ▲1.62 |
Dashboard /wp-admin | 3.44 ▲0.14 | 59.64 ▲6.64 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 54.15 ▲3.68 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 88.16 ▼15.68 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.55 ▲1.97 |
网站地图调试 /wp-admin/admin.php?page=wppaositemap_helper | 3.33 | 33.93 |
WP泡网站地图 /wp-admin/admin.php?page=wppaositemap | 3.38 | 40.16 |
Server storage [IO: ▲0.16MB] [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: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wppao Sitemap
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.25 ▲0.12 | 1.72 ▼0.03 | 43.57 ▼0.45 |
Dashboard /wp-admin | 2,209 ▲29 | 5.53 ▼0.12 | 85.02 ▼13.80 | 82.64 ▲43.99 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.04 ▲0.09 | 38.63 ▼1.86 | 44.23 ▲8.46 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 23.33 ▲0.33 | 739.94 ▲94.65 | 58.47 ▼0.65 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.12 ▼0.07 | 98.67 ▼8.04 | 72.33 ▲25.89 |
网站地图调试 /wp-admin/admin.php?page=wppaositemap_helper | 829 | 1.99 | 22.47 | 59.29 |
WP泡网站地图 /wp-admin/admin.php?page=wppaositemap | 1,198 | 3.26 | 44.39 | 298.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wppsmp_get_setting() in wp-content/plugins/wppao-sitemap/module/baidu-zd.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function wppsmp_get_setting() in wp-content/plugins/wppao-sitemap/module/auto.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wppsmp_get_setting() in wp-content/plugins/wppao-sitemap/module/js-ts.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wppao-sitemap/options/initialization.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2 in wppao-sitemap/assets to your readme.txt
wppao-sitemap/wppao-sitemap.php Passed 13 tests
"Wppao Sitemap" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
生成网站SEO所需要的Sitemap网站地图,支持xml和html格式的网站地图。
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
Success! There were no dangerous files found in this plugin1,079 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 118 | 83 | 747 |
CSS | 1 | 29 | 0 | 182 |
JavaScript | 2 | 10 | 2 | 110 |
HTML | 1 | 0 | 0 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 48.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 8.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 3 | 25.00% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 25.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
options/images/qun.png | 1.78KB | 1.74KB | ▼ 2.46% |
imgs/plugin_icon.png | 0.67KB | 0.70KB | 0.00% |
options/images/qqmail.png | 1.81KB | 1.76KB | ▼ 2.70% |