Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.45MB] [CPU: ▼11.33ms] Passed 4 tests
Analyzing server-side resources used by LINE Message Work
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 39.21 ▲0.55 |
Dashboard /wp-admin | 3.56 ▲0.26 | 47.05 ▼0.80 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 48.37 ▲0.86 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.51 | 38.70 ▼45.93 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.24 ▲3.92 |
WP LINE Account /wp-admin/options-general.php?page=sig-wp-line-work | 3.39 | 32.45 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 146 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
LINE Message Work: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.24 ▼1.17 | 2.02 ▲0.27 | 44.87 ▲0.72 |
Dashboard /wp-admin | 2,210 ▲22 | 5.84 ▲0.01 | 96.72 ▼16.45 | 38.86 ▼6.00 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.02 ▲0.01 | 39.94 ▲1.44 | 36.16 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 23.31 ▼0.05 | 596.39 ▼85.26 | 46.99 ▼2.35 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▼0.02 | 97.90 ▼5.43 | 42.24 ▼1.76 |
WP LINE Account /wp-admin/options-general.php?page=sig-wp-line-work | 849 | 2.07 | 27.66 | 26.17 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sig-wp-line-work
- > Notice in wp-content/plugins/line-message-work/includes/page-setup.php+53
Undefined property: LineBot::$token_status
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sig-wp-line-work
- > Notice in wp-content/plugins/line-message-work/includes/page-setup.php+53
Trying to access array offset on value of type null
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
Please fix the following items
- 72× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LINE\\LINEBot\\Event\\MessageEvent' not found in wp-content/plugins/line-message-work/LINEBot/Event/MessageEvent/UnknownMessage.php:28
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder' not found in wp-content/plugins/line-message-work/LINEBot/MessageBuilder/AudioMessageBuilder.php:31
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder\\Flex\\ComponentBuilder' not found in wp-content/plugins/line-message-work/LINEBot/MessageBuilder/Flex/ComponentBuilder/SpacerComponentBuilder.php:31
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\TemplateActionBuilder' not found in wp-content/plugins/line-message-work/LINEBot/TemplateActionBuilder/PostbackTemplateActionBuilder.php:29
- > PHP Fatal error
Uncaught Error: Class 'LINE\\LINEBot\\Event\\MessageEvent' not found in wp-content/plugins/line-message-work/LINEBot/Event/MessageEvent/StickerMessage.php:28
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder\\Flex\\ComponentBuilder' not found in wp-content/plugins/line-message-work/LINEBot/MessageBuilder/Flex/ComponentBuilder/ButtonComponentBuilder.php:35
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder' not found in wp-content/plugins/line-message-work/LINEBot/MessageBuilder/FlexMessageBuilder.php:33
- > PHP Fatal error
Uncaught Error: Class 'LINE\\LINEBot\arrowcast\\DemographicFilter\\OneOfDemographicFilter' not found in wp-content/plugins/line-message-work/LINEBot/Narrowcast/DemographicFilter/AppTypeDemographicFilterBuilder.php:25
- > PHP Fatal error
Uncaught Error: Class 'LINE\\LINEBot\arrowcast\\DemographicFilter\\RangeDemographicFilterBuilder' not found in wp-content/plugins/line-message-work/LINEBot/Narrowcast/DemographicFilter/AgeDemographicFilterBuilder.php:25
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder\\TemplateBuilder' not found in wp-content/plugins/line-message-work/LINEBot/MessageBuilder/TemplateBuilder/ImageCarouselTemplateBuilder.php:29
- > 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 93% from 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
3 plugin tags: message, line, post
line-message-work/wp-line-work.php 85% from 13 tests
The primary PHP file in "LINE Message Work" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("line-message-work.php" instead of "wp-line-work.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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,430 lines of code in 143 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 142 | 1,124 | 5,575 | 4,429 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 130 | |
▷ Abstract classes | 4 | 3.08% |
▷ Concrete classes | 126 | 96.92% |
▷ Final classes | 0 | 0.00% |
Methods | 424 | |
▷ Static methods | 23 | 5.42% |
▷ Public methods | 413 | 97.41% |
▷ Protected methods | 7 | 1.65% |
▷ Private methods | 4 | 0.94% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 169 | |
▷ Global constants | 3 | 1.78% |
▷ Class constants | 166 | 98.22% |
▷ Public constants | 166 | 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
There were not PNG files found in your plugin