Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/livediscourse/livediscourse.php+58
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.07ms] Passed 4 tests
A check of server-side resources used by LiveDiscourse
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 40.77 ▼0.56 |
Dashboard /wp-admin | 3.35 ▲0.00 | 50.13 ▼4.44 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 48.92 ▲0.15 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 93.09 ▼15.43 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 38.67 ▲2.58 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for LiveDiscourse
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.11 | 1.74 ▼0.34 | 46.19 ▲1.41 |
Dashboard /wp-admin | 2,189 ▲9 | 5.62 ▼0.00 | 89.76 ▼3.19 | 38.84 ▼6.14 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.98 ▲0.01 | 35.06 ▼1.55 | 33.00 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.03 ▼0.07 | 668.07 ▲20.35 | 53.34 ▼5.96 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.11 ▼0.07 | 113.71 ▲7.57 | 48.30 ▼1.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant LD_URL - assumed 'LD_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/livediscourse/manage.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/livediscourse/manage.php:29
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/livediscourse/livediscourse.php on line 58
- > PHP Warning
Use of undefined constant LD_URL - assumed 'LD_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/livediscourse/manage.php on line 12
- > PHP Warning
Use of undefined constant LD_URL - assumed 'LD_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/livediscourse/manage.php on line 29
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: comments
livediscourse/livediscourse.php Passed 13 tests
"LiveDiscourse" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
13 characters long description:
LivDis plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin168 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 29 | 89 |
JavaScript | 1 | 11 | 8 | 55 |
CSS | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
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 | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/logo_bottom.png | 5.09KB | 2.65KB | ▼ 47.98% |
css/header_background.png | 31.95KB | 16.03KB | ▼ 49.82% |
css/logo.png | 5.83KB | 3.72KB | ▼ 36.19% |