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.15MB] [CPU: ▼7.37ms] 75% from 4 tests
A check of server-side resources used by ImageFlux - Optimize images & Convert WebP with CDN
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,249.55ms on /wp-admin/admin.php?page=image-flux-list)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.69 ▲2.63 |
Dashboard /wp-admin | 3.47 ▲0.12 | 43.45 ▼14.54 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 43.78 ▼4.07 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 83.38 ▼13.49 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.82 ▲3.78 |
画像変換・配信設定 /wp-admin/admin.php?page=image-flux-diff | 3.38 | 32.87 |
ダッシュボード /wp-admin/admin.php?page=image-flux-token | 3.38 | 1,316.65 |
ImageFlux /wp-admin/admin.php?page=image-flux-top | 3.36 | 32.57 |
オリジン設定 /wp-admin/admin.php?page=image-flux-list | 3.38 | 1,249.55 |
Server storage [IO: ▲0.26MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by ImageFlux - Optimize images & Convert WebP with CDN
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.35 ▼0.24 | 1.76 ▲0.18 | 39.83 ▲0.55 |
Dashboard /wp-admin | 2,235 ▲67 | 5.54 ▲0.01 | 81.10 ▼4.98 | 95.23 ▲52.14 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.00 ▲0.06 | 36.29 ▲1.26 | 37.66 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,709 ▲183 | 21.06 ▼2.09 | 741.61 ▲82.33 | 46.87 ▼15.83 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.20 ▲0.03 | 95.78 ▲3.05 | 69.93 ▲29.78 |
画像変換・配信設定 /wp-admin/admin.php?page=image-flux-diff | 1,006 | 1.99 | 23.50 | 76.90 |
ダッシュボード /wp-admin/admin.php?page=image-flux-token | 858 | 3.23 | 72.41 | 53.99 |
ImageFlux /wp-admin/admin.php?page=image-flux-top | 873 | 2.01 | 24.55 | 43.23 |
オリジン設定 /wp-admin/admin.php?page=image-flux-list | 869 | 2.18 | 23.67 | 49.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=image-flux-token
- > Notice in wp-content/plugins/imageflux/templates/dashboard.php+76
Undefined variable: graph_month
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=image-flux-token
- > Notice in wp-content/plugins/imageflux/templates/dashboard.php+76
Undefined index:
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=image-flux-token
- > Notice in wp-content/plugins/imageflux/templates/dashboard.php+76
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/imageflux/templates/token-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/imageflux/templates/diff-settings.php:9
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/imageflux/templates/dashboard.php on line 26
- > PHP Warning
array_reverse() expects parameter 1 to be array, null given in wp-content/plugins/imageflux/templates/dashboard.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/imageflux/templates/basic-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/imageflux/templates/origin-list.php:10
- > PHP Notice
Undefined variable: transfer_view_datas in wp-content/plugins/imageflux/templates/dashboard.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/imageflux/templates/basic-update-settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/imageflux/templates/dashboard.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imageflux/imageflux.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: optimize images, cdn, images, image optimization, convert webp...
imageflux/imageflux.php Passed 13 tests
The main PHP script in "ImageFlux - Optimize images & Convert WebP with CDN" version 1.0.2 is automatically included on every request by WordPress
99 characters long description:
WordPressサイトの画像を一括で最適化・軽量化し、CDNを通して配信します。
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
Good job! No executable or dangerous file extensions detected1,439 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 321 | 260 | 1,427 |
CSS | 1 | 2 | 0 | 10 |
JavaScript | 1 | 0 | 11 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 15 | 32.61% |
▷ Public methods | 43 | 93.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 18 | 100.00% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin