Benchmarks
Plugin footprint 65% 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: ▲1.64MB] [CPU: ▲7.73ms] 75% from 4 tests
Server-side resources used by JiangQie Free Mini Program
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 707.48ms on /wp-admin/admin.php?page=jiangqie-api)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.03 ▲1.56 | 43.83 ▲4.88 |
Dashboard /wp-admin | 5.01 ▲1.66 | 675.01 ▲619.83 |
Posts /wp-admin/edit.php | 5.04 ▲1.68 | 52.73 ▲5.11 |
Add New Post /wp-admin/post-new.php | 7.65 ▲1.75 | 90.25 ▲5.60 |
Media Library /wp-admin/upload.php | 4.91 ▲1.68 | 48.67 ▲15.32 |
酱茄Free小程序 /wp-admin/admin.php?page=jiangqie-api | 4.99 | 707.48 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 4.97 | 49.45 |
安装文档 /wp-admin/admin.php?page=jiangqie_xcx_free_setup | 4.69 | 36.33 |
新版下载 /wp-admin/admin.php?page=jiangqie_xcx_free_upgrade | 4.69 | 37.11 |
Server storage [IO: ▲1.96MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 159 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_jiangqie_post_like |
wp_jiangqie_post_favorite |
wp_jiangqie_post_search |
wp_jiangqie_post_view |
New WordPress options |
---|
db_upgraded |
jiangqie-api |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for JiangQie Free Mini Program
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,071 ▲336 | 13.49 ▼0.87 | 7.92 ▲6.23 | 28.77 ▼19.09 |
Dashboard /wp-admin | 2,364 ▲187 | 5.59 ▼0.16 | 82.26 ▼6.92 | 100.83 ▲58.95 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.03 ▲0.03 | 34.57 ▼0.10 | 42.70 ▲4.07 |
Add New Post /wp-admin/post-new.php | 1,562 ▲31 | 22.81 ▼0.40 | 653.37 ▲27.24 | 54.87 ▲1.21 |
Media Library /wp-admin/upload.php | 1,452 ▲55 | 4.13 ▼0.07 | 108.05 ▲9.44 | 55.84 ▲11.51 |
酱茄Free小程序 /wp-admin/admin.php?page=jiangqie-api | 2,784 | 5.15 | 65.00 | 143.08 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,637 | 4.95 | 54.07 | 59.27 |
安装文档 /wp-admin/admin.php?page=jiangqie_xcx_free_setup | 1,108 | 3.17 | 52.63 | 98.08 |
新版下载 /wp-admin/admin.php?page=jiangqie_xcx_free_upgrade | 1,620 | 3.42 | 70.28 | 135.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 4 tables in the database
- wp_jiangqie_post_view
- wp_jiangqie_post_like
- wp_jiangqie_post_search
- wp_jiangqie_post_favorite
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- jiangqie-api
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/jiangqie-free-mini-program/admin/partials/jiangqie-api-admin-display.php
- > /wp-content/plugins/jiangqie-free-mini-program/includes/class-jiangqie-api-ajax.php
- > /wp-content/plugins/jiangqie-free-mini-program/public/partials/jiangqie-api-public-display.php
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'JiangQie_API_Base_Controller' not found in wp-content/plugins/jiangqie-free-mini-program/public/rest/class-jiangqie-api-category-controller.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/jiangqie-free-mini-program/public/rest/class-jiangqie-api-base-controller.php:12
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/jiangqie-free-mini-program/admin/partials/profile.php:13
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/jiangqie-free-mini-program/admin/partials/hot.php:13
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/jiangqie-free-mini-program/admin/partials/category.php:13
- > PHP Fatal error
Uncaught Error: Class 'JiangQie_API_Base_Controller' not found in wp-content/plugins/jiangqie-free-mini-program/public/rest/class-jiangqie-api-other-controller.php:12
- > PHP Fatal error
Uncaught Error: Class 'JiangQie_API_Base_Controller' not found in wp-content/plugins/jiangqie-free-mini-program/public/rest/class-jiangqie-api-comment-controller.php:12
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/jiangqie-free-mini-program/admin/partials/home.php:13
- > PHP Fatal error
Uncaught Error: Class 'JiangQie_API_Base_Controller' not found in wp-content/plugins/jiangqie-free-mini-program/public/rest/class-jiangqie-api-post-controller.php:12
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/jiangqie-free-mini-program/admin/partials/user.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: The plugin tags were not defined
jiangqie-free-mini-program/jiangqie-api.php 85% from 13 tests
This is the main PHP file of "JiangQie Free Mini Program" version 2.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("jiangqie-free-mini-program.php" instead of "jiangqie-api.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected10,979 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 2,410 | 1,423 | 9,343 |
CSS | 10 | 81 | 29 | 627 |
Markdown | 2 | 85 | 0 | 379 |
PO File | 1 | 160 | 180 | 324 |
JavaScript | 8 | 80 | 84 | 304 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 20.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 5.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 2 | 2.99% |
▷ Concrete classes | 65 | 97.01% |
▷ Final classes | 0 | 0.00% |
Methods | 288 | |
▷ Static methods | 39 | 13.54% |
▷ Public methods | 272 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 5.56% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 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
10 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/id_bg.png | 11.01KB | 11.14KB | 0.00% |
public/images/timeline_bg.png | 0.10KB | 0.10KB | 0.00% |
public/images/cat_cover.png | 2.66KB | 2.82KB | 0.00% |
admin/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
admin/js/layer/theme/default/icon.png | 11.22KB | 4.36KB | ▼ 61.19% |