Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼303.99ms] Passed 4 tests
Server-side resources used by Lynechat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 58.70 ▲5.10 |
Dashboard /wp-admin | 3.45 ▲0.05 | 35.59 ▼37.57 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 42.00 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 114.82 ▼1,180.03 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 28.15 ▲3.11 |
Lynechat /wp-admin/options-general.php?page=lynechat_settings | 3.30 | 30.13 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Lynechat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲43 | 15.88 ▲0.11 | 6.27 ▼0.36 | 1.95 ▼0.47 |
Dashboard /wp-admin | 2,894 ▲33 | 6.13 ▼0.07 | 129.08 ▼7.87 | 161.35 ▼1.82 |
Posts /wp-admin/edit.php | 2,696 ▲26 | 3.24 ▼0.00 | 61.76 ▼25.58 | 138.80 ▼6.47 |
Add New Post /wp-admin/post-new.php | 1,664 ▲4 | 16.72 ▲0.63 | 395.78 ▼29.23 | 195.65 ▲31.22 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.49 ▼0.02 | 141.60 ▼0.90 | 182.20 ▲0.82 |
Lynechat /wp-admin/options-general.php?page=lynechat_settings | 1,045 | 2.49 | 54.68 | 137.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lynechat/lynechat.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
- Plugin Name: Please specify the plugin name on the first line (
=== lynechat ===
)
lynechat/lynechat.php Passed 13 tests
Analyzing the main PHP file in "Lynechat" version 1.0.0
37 characters long description:
Embed real time chat on your web page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected181 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 52 | 16 | 181 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin