Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_TopRated.class.php+280
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.48ms] Passed 4 tests
An overview of server-side resources used by WP Kuchikomi
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.13 ▼36.08 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.07 ▼44.98 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 9.56 ▼38.29 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.74 ▼90.55 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.11 ▼27.00 |
Settings /wp-admin/admin.php?page=wp-kuchikomi | 2.05 | 6.33 |
Item Setting /wp-admin/admin.php?page=wp-kuchikomi-item | 2.05 | 4.95 |
Help /wp-admin/admin.php?page=wp-kuchikomi-help | 2.05 | 7.56 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_widget-kuchikomi-recent-ratings |
widget_widget-kuchikomi-top-rated |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Kuchikomi: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲115 | 14.48 ▼0.06 | 2.29 ▲0.47 | 35.67 ▼8.65 |
Dashboard /wp-admin | 2,234 ▲55 | 5.87 ▲0.94 | 99.22 ▼13.70 | 71.93 ▲23.61 |
Posts /wp-admin/edit.php | 2,138 ▲52 | 2.02 ▼0.04 | 39.44 ▲4.64 | 36.21 ▲5.94 |
Add New Post /wp-admin/post-new.php | 1,702 ▲174 | 21.97 ▲3.51 | 703.94 ▲99.26 | 64.37 ▲11.19 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.24 ▲0.01 | 101.86 ▲2.84 | 82.32 ▲38.39 |
Settings /wp-admin/admin.php?page=wp-kuchikomi | 974 | 1.93 | 26.69 | 26.12 |
Item Setting /wp-admin/admin.php?page=wp-kuchikomi-item | 884 | 1.83 | 25.31 | 23.64 |
Help /wp-admin/admin.php?page=wp-kuchikomi-help | 1,036 | 1.82 | 23.71 | 99.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_TopRated.class.php+280
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_widget-kuchikomi-top-rated
- widget_widget-kuchikomi-recent-ratings
- widget_recent-posts
- widget_recent-comments
- 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
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-kuchikomi-help
- > Deprecated in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_RecentRatings.class.php+174
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-kuchikomi
- > Notice in wp-content/plugins/wp-kuchikomi/inc/admin/WP_KckmAdmin.class.php+233
Trying to access array offset on value of type bool
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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_create_date_visible() in wp-content/plugins/wp-kuchikomi/inc/shortcodes/templates/top_rated_posts_default.php:17
- > PHP Notice
Undefined variable: permalink in wp-content/plugins/wp-kuchikomi/inc/shortcodes/templates/top_rated_posts_default.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_TopRated.class.php:6
- > PHP Notice
Undefined variable: title in wp-content/plugins/wp-kuchikomi/inc/shortcodes/templates/top_rated_posts_default.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-kuchikomi/inc/widgets/WP_KckmWidget_RecentRatings.class.php:6
- > PHP Notice
Undefined variable: rank in wp-content/plugins/wp-kuchikomi/inc/shortcodes/templates/top_rated_posts_default.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
wp-kuchikomi/wp-kuchikomi.php Passed 13 tests
The main file in "WP Kuchikomi" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
WordPressに口コミ機能を付与するプラグイン
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,274 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 344 | 384 | 1,439 |
CSS | 4 | 123 | 0 | 706 |
PO File | 1 | 35 | 0 | 84 |
JavaScript | 2 | 7 | 9 | 44 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 32.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 5.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 5 | 10.42% |
▷ Public methods | 47 | 97.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.08% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 9.39KB | 3.60KB | ▼ 61.62% |
assets/img/footer_logo.png | 9.64KB | 3.02KB | ▼ 68.70% |
assets/img/menu_logo.png | 0.30KB | 0.24KB | ▼ 22.01% |
screenshot-1.png | 24.88KB | 12.88KB | ▼ 48.21% |