Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.00MB] [CPU: ▼3.21ms] Passed 4 tests
Server-side resources used by 一款精美的在线 旅行地图标记,记录日志插件
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.80 ▲1.07 | 49.57 ▲3.92 |
Dashboard /wp-admin | 4.63 ▲1.00 | 58.49 ▼8.40 |
Posts /wp-admin/edit.php | 4.68 ▲1.00 | 64.26 ▲6.44 |
Add New Post /wp-admin/post-new.php | 7.15 ▲1.00 | 98.67 ▼14.80 |
Media Library /wp-admin/upload.php | 4.49 ▲1.00 | 50.75 ▲11.68 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
jiutu_mapmarker_data |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 一款精美的在线 旅行地图标记,记录日志插件
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 18.66 ▲4.06 | 11.58 ▲9.33 | 42.82 ▲3.56 |
Dashboard /wp-admin | 2,253 ▲73 | 8.16 ▲2.56 | 109.92 ▲19.99 | 49.57 ▲3.89 |
Posts /wp-admin/edit.php | 2,161 ▲58 | 4.96 ▲2.96 | 55.88 ▲14.65 | 44.80 ▲6.00 |
Add New Post /wp-admin/post-new.php | 1,572 ▲41 | 22.72 ▼0.40 | 675.34 ▲52.71 | 43.64 ▼16.09 |
Media Library /wp-admin/upload.php | 1,458 ▲61 | 7.65 ▲3.38 | 110.85 ▲1.61 | 47.76 ▲1.15 |
使用说明 /wp-admin/admin.php?page=jiutu_mapmarker#tab=%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e | 1,960 | 8.05 | 99.07 | 158.57 |
我的足迹 /wp-admin/admin.php?page=jiutu_mapmarker#tab=%e6%88%91%e7%9a%84%e8%b6%b3%e8%bf%b9 | 1,943 | 8.37 | 154.05 | 48.12 |
地图设置 /wp-admin/admin.php?page=jiutu_mapmarker#tab=%e5%9c%b0%e5%9b%be%e8%ae%be%e7%bd%ae | 2,865 | 12.74 | 230.24 | 188.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- jiutu_mapmarker_data
- widget_theysaidso_widget
Smoke tests 50% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jiutu-mapmarker/mapmarker.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=jiutu_mapmarker#tab=%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e
- > Network (severe)
wp-content/plugins/jiutu-mapmarker/static/about-header-about.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (`前台展示图片`), #2 (`地点日志时间详情`), #3 (`插件配置截图`)
jiutu-mapmarker/mapmarker.php 92% from 13 tests
The main PHP file in "一款精美的在线 旅行地图标记,记录日志插件" ver. 1.2.7 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("jiutu-mapmarker.php" instead of "mapmarker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected13,080 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 1,566 | 806 | 6,151 |
CSS | 3 | 957 | 4 | 5,269 |
JavaScript | 5 | 58 | 49 | 1,324 |
PO File | 1 | 161 | 177 | 334 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 20.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 6.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 176 | |
▷ Static methods | 28 | 15.91% |
▷ Public methods | 176 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 25 | 86.21% |
▷ Anonymous functions | 4 | 13.79% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 1.98MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/css/images/map/dark.png | 221.83KB | 238.85KB | 0.00% |
static/css/images/layers.png | 0.68KB | 1.05KB | 0.00% |
screenshot-3.png | 67.89KB | 16.84KB | ▼ 75.20% |
static/css/images/map/streets.png | 236.88KB | 251.86KB | 0.00% |
inc/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |