Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.56ms] Passed 4 tests
This is a short check of server-side resources used by DFOXT Thumbnails 分类\标签图像扩展插件
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.99 ▲1.78 |
Dashboard /wp-admin | 3.35 ▲0.05 | 61.54 ▲9.61 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 55.85 ▲2.49 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 96.78 ▼7.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.69 ▼3.48 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
DFOXT Thumbnails 分类\标签图像扩展插件: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 14.41 ▲0.04 | 1.91 ▲0.32 | 46.31 ▲4.07 |
Dashboard /wp-admin | 2,333 ▲156 | 6.15 ▲0.53 | 104.96 ▲16.40 | 39.18 ▲0.54 |
Posts /wp-admin/edit.php | 2,267 ▲167 | 3.40 ▲1.42 | 62.07 ▲27.26 | 34.83 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.28 ▲0.06 | 673.52 ▼17.86 | 36.03 ▼14.73 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.25 ▲0.07 | 83.65 ▼15.82 | 46.69 ▼1.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 | 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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/dfoxt-thumbnails/dfoxt_thumbnails.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
5 plugin tags: nnnn, dfox, doofox, thumbnails, dfoxt
dfoxt-thumbnails/dfoxt_thumbnails.php 92% from 13 tests
Analyzing the main PHP file in "DFOXT Thumbnails 分类\标签图像扩展插件" version 1.2
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dfoxt-thumbnails.php" instead of "dfoxt_thumbnails.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected430 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 5 | 13 | 162 |
PHP | 1 | 15 | 37 | 162 |
Sass | 1 | 0 | 0 | 105 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing 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.38 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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