Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.05ms] 50% from 4 tests
This is a short check of server-side resources used by 一介資男(Mxp.TW) 開發工具箱
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 5,146.55ms on /wp-admin/admin.php?page=mxp-recently-mod_files)
- RAM: Try to keep total memory usage under 10MB (currently 243.59MB on /wp-admin/admin.php?page=mxp-recently-mod_files)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.41 ▼1.21 |
Dashboard /wp-admin | 3.37 ▲0.07 | 42.08 ▼6.26 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.25 ▲3.68 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 77.68 ▼18.16 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.62 ▼2.55 |
作者外掛列表 /wp-admin/admin.php?page=mxp-author-plugins | 3.62 | 611.45 |
查看網站各項設定 /wp-admin/admin.php?page=mxp-get-wp-config | 3.49 | 1,716.17 |
調整內容作者工具 /wp-admin/admin.php?page=mxp-change-post-owner | 3.26 | 30.66 |
查看最近變更檔案 /wp-admin/admin.php?page=mxp-recently-mod_files | 243.59 | 5,146.55 |
WP 資料庫最佳化 /wp-admin/admin.php?page=mxp-wpdb-optimize-methods | 3.26 | 34.13 |
資料庫檢視與匯出 /wp-admin/admin.php?page=mxp-db-op-methods | 3.53 | 38.12 |
主題打包工具 /wp-admin/admin.php?page=mxp-theme-archive | 3.28 | 28.46 |
主機 PHP 設定 /wp-admin/admin.php?page=mxp-get-php-info | 3.56 | 34.04 |
外掛搜尋工具 /wp-admin/admin.php?page=mxp-search-plugins | 3.26 | 30.77 |
資料庫關鍵字取代 /wp-admin/admin.php?page=mxp-db-replace-methods | 3.27 | 33.45 |
Server storage [IO: ▲0.33MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 一介資男(Mxp.TW) 開發工具箱
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲70 | 14.40 ▲0.11 | 1.68 ▼0.19 | 37.94 ▼8.06 |
Dashboard /wp-admin | 2,265 ▲88 | 5.60 ▼0.01 | 97.85 ▲11.69 | 55.23 ▲4.72 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 2.02 ▼0.01 | 38.92 ▲2.11 | 48.99 ▲16.91 |
Add New Post /wp-admin/post-new.php | 1,578 ▲41 | 23.43 ▲5.12 | 699.80 ▲70.82 | 60.00 ▼3.01 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.26 ▲0.03 | 94.34 ▼2.79 | 49.44 ▲5.24 |
作者外掛列表 /wp-admin/admin.php?page=mxp-author-plugins | 1,231 | 2.04 | 22.87 | 60.30 |
查看網站各項設定 /wp-admin/admin.php?page=mxp-get-wp-config | 2,878 | 2.12 | 23.19 | 85.81 |
調整內容作者工具 /wp-admin/admin.php?page=mxp-change-post-owner | 876 | 2.00 | 23.28 | 41.79 |
查看最近變更檔案 /wp-admin/admin.php?page=mxp-recently-mod_files | 893 | 1.12 | 6.12 | 49.25 |
WP 資料庫最佳化 /wp-admin/admin.php?page=mxp-wpdb-optimize-methods | 1,125 | 2.19 | 23.60 | 65.47 |
資料庫檢視與匯出 /wp-admin/admin.php?page=mxp-db-op-methods | 1,002 | 2.02 | 25.85 | 50.83 |
主題打包工具 /wp-admin/admin.php?page=mxp-theme-archive | 892 | 2.03 | 23.28 | 43.31 |
主機 PHP 設定 /wp-admin/admin.php?page=mxp-get-php-info | 9,465 | 1.84 | 29.42 | 83.57 |
外掛搜尋工具 /wp-admin/admin.php?page=mxp-search-plugins | 1,080 | 3.37 | 57.02 | 41.81 |
資料庫關鍵字取代 /wp-admin/admin.php?page=mxp-db-replace-methods | 1,014 | 2.02 | 24.69 | 50.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=mxp-recently-mod_files
- > Error in wp-content/plugins/mxp-dev-tools/includes/utility.php+197
Allowed memory size of 268435456 bytes exhausted (tried to allocate 23068968 bytes)
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=mxp-search-plugins
- > Console-api (warning) in unknown
https://cdn.jsdelivr.net/npm/typesense-instantsearch-adapter@2/dist/typesense-instantsearch-adapter.min.js 1:112285 "[typesense-instantsearch-adapter] Please use snake_cased versions of parameters in additionalSearchParameters instead of camelCased parameters. For example: Use query_by instead of queryBy. camelCased parameters will be deprecated in a future version. We're making this change so that parameter names are identical to the ones sent to Typesense (which are all snake_cased), and to also keep the types for these parameters in sync with the types defined in typesense-js."
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
7 plugin tags: admin, installation, api, chinese, plugin...
mxp-dev-tools/index.php 92% from 13 tests
The main PHP file in "一介資男(Mxp.TW) 開發工具箱" ver. 2.7.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mxp-dev-tools.php" instead of "index.php")
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
There were no executable files found in this plugin6,434 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 492 | 789 | 5,327 |
JavaScript | 6 | 5 | 41 | 1,107 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 253.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 16 | |
▷ Abstract classes | 4 | 25.00% |
▷ Concrete classes | 12 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 6 | 2.78% |
▷ Public methods | 181 | 83.80% |
▷ Protected methods | 1 | 0.46% |
▷ Private methods | 34 | 15.74% |
Functions | 15 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 15 | 100.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 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
PNG images were not found in this plugin