Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.18MB] [CPU: ▼273.91ms] Passed 4 tests
Analyzing server-side resources used by LINE for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 43.65 ▲24.63 |
Dashboard /wp-admin | 2.93 ▼0.13 | 27.51 ▼7.94 |
Posts /wp-admin/edit.php | 2.99 ▼0.12 | 28.74 ▼17.96 |
Add New Post /wp-admin/post-new.php | 5.00 ▼0.43 | 87.96 ▼1,053.69 |
Media Library /wp-admin/upload.php | 2.95 ▼0.05 | 24.09 ▼16.05 |
LINE Setting /wp-admin/options-general.php?page=line-settings | 3.00 | 30.36 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 133 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for LINE for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲77 | 15.94 ▲0.41 | 8.21 ▲0.02 | 43.72 ▼2.93 |
Dashboard /wp-admin | 2,964 ▲114 | 5.94 ▲0.03 | 146.03 ▲9.21 | 102.60 ▼1.04 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.02 | 63.57 ▼5.02 | 88.12 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,708 ▲57 | 18.80 ▲1.61 | 340.11 ▲0.92 | 112.89 ▲8.72 |
Media Library /wp-admin/upload.php | 1,780 ▲11 | 5.01 ▼0.01 | 153.31 ▲15.94 | 112.34 ▼4.46 |
LINE Setting /wp-admin/options-general.php?page=line-settings | 1,089 | 2.71 | 70.87 | 63.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% 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 | 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
- 60× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LINE\\LINEBot\\Event\\BaseEvent' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/Event/FollowEvent.php:26
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder\\Flex\\ContainerBuilder' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/MessageBuilder/Flex/ContainerBuilder/BubbleContainerBuilder.php:35
- > PHP Fatal error
Uncaught Error: Class 'LINE\\LINEBot\\Event\\BaseEvent' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/Event/LeaveEvent.php:26
- > PHP Fatal error
Uncaught Error: Class 'LINE\\LINEBot\\Event\\BaseEvent' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/Event/JoinEvent.php:26
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\ImagemapActionBuilder' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/ImagemapActionBuilder/ImagemapUriActionBuilder.php:29
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder\\Flex\\ComponentBuilder' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/MessageBuilder/Flex/ComponentBuilder/TextComponentBuilder.php:39
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/MessageBuilder/VideoMessageBuilder.php:30
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder\\Flex\\ContainerBuilder' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/MessageBuilder/Flex/ContainerBuilder/CarouselContainerBuilder.php:29
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\MessageBuilder\\TemplateBuilder' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/MessageBuilder/TemplateBuilder/CarouselColumnTemplateBuilder.php:29
- > PHP Fatal error
Uncaught Error: Interface 'LINE\\LINEBot\\TemplateActionBuilder' not found in wp-content/plugins/line-wp/packages/LINE/LINEBot/TemplateActionBuilder/DatetimePickerTemplateActionBuilder.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: japanese, bot, messenger, line
line-wp/line-wp.php 92% from 13 tests
The principal PHP file in "LINE for WordPress" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.7.0" instead of "5.7")
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
No dangerous file extensions were detected4,553 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 1,069 | 5,560 | 4,550 |
CSS | 1 | 0 | 1 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 1.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 119 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 119 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 443 | |
▷ Static methods | 25 | 5.64% |
▷ Public methods | 436 | 98.42% |
▷ Protected methods | 3 | 0.68% |
▷ Private methods | 4 | 0.90% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 161 | |
▷ Global constants | 10 | 6.21% |
▷ Class constants | 151 | 93.79% |
▷ Public constants | 151 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin