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: ▲0.11MB] [CPU: ▲0.06ms] Passed 4 tests
Analyzing server-side resources used by DFOXC-Comments 富文本评论框插件
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 47.03 ▲1.94 |
Dashboard /wp-admin | 3.42 ▲0.11 | 56.99 ▲2.11 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 54.38 ▲2.02 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.36 ▼5.83 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 42.89 ▲5.50 |
DFOXWP 设置 /wp-admin/admin.php?page=dfox_wp_admin | 3.36 | 39.59 |
↳ 评论框设置 /wp-admin/admin.php?page=comments | 3.28 | 38.23 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DFOXC-Comments 富文本评论框插件
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.24 ▼0.11 | 2.06 ▲0.02 | 42.83 ▼2.87 |
Dashboard /wp-admin | 2,221 ▲41 | 5.60 ▼0.01 | 93.10 ▲3.69 | 50.27 ▲5.50 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 2.04 ▼0.03 | 35.78 ▼0.93 | 43.27 ▲8.26 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.35 ▼0.36 | 691.16 ▲23.02 | 54.38 ▼6.52 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.18 ▼0.05 | 100.01 ▼6.03 | 52.54 ▲11.12 |
DFOXWP 设置 /wp-admin/admin.php?page=dfox_wp_admin | 1,106 | 1.70 | 25.20 | 169.39 |
↳ 评论框设置 /wp-admin/admin.php?page=comments | 1,759 | 2.43 | 27.91 | 88.46 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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 no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_cache_get() in wp-content/plugins/dfoxc-comments/form/load.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Emojione\\ClientInterface' not found in wp-content/plugins/dfoxc-comments/form/themes/pure/lib/Client.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/dfoxc-comments/dfox_wp/dfoxwpsuite.class.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dfoxc-comments/dfox_wp/load.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dfoxc-comments/form/public.func.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/dfoxc-comments/dfoxc_comments.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Emojione\\RulesetInterface' not found in wp-content/plugins/dfoxc-comments/form/themes/pure/lib/Ruleset.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=dfox_wp_admin
- > Javascript (severe) in unknown
/wp-content/plugins/dfoxc-comments/dfox_wp/dfoxwp.min.js?ver=6.3.1 0:114 Uncaught TypeError: Cannot read properties of undefined (reading 'split')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: comments, emoji, nnnn, dfoxc, dfox...
dfoxc-comments/dfoxc_comments.php 92% from 13 tests
The principal PHP file in "DFOXC-Comments 富文本评论框插件" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("dfoxc-comments.php" instead of "dfoxc_comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,075 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 166 | 2,908 | 4,442 |
JavaScript | 4 | 99 | 31 | 1,397 |
Sass | 3 | 14 | 4 | 1,158 |
SVG | 1 | 0 | 0 | 76 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 5 | 6.58% |
▷ Public methods | 64 | 84.21% |
▷ Protected methods | 5 | 6.58% |
▷ Private methods | 7 | 9.21% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
PNG images were not found in this plugin