Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.73ms] Passed 4 tests
Server-side resources used by LC Scripts Optimizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 37.24 ▼7.52 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.38 ▼0.54 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.88 ▲1.55 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 84.29 ▼12.41 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.73 ▲4.55 |
LC Scripts Optimizer /wp-admin/tools.php?page=lcso_settings | 3.47 | 34.57 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/lc-scripts-optimizer/" and "wp-content/uploads/"
- (new file) wp-content/lcso-cache/.empty
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by LC Scripts Optimizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲36 | 14.36 ▲0.07 | 2.49 ▲0.61 | 40.05 ▼4.66 |
Dashboard /wp-admin | 2,206 ▲29 | 5.58 ▼0.07 | 81.70 ▼18.94 | 36.64 ▼7.46 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.00 ▼0.02 | 35.91 ▼0.60 | 33.53 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.07 ▼0.11 | 679.58 ▲72.28 | 57.91 ▼4.46 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.20 ▼0.00 | 93.68 ▼5.10 | 42.52 ▼1.07 |
LC Scripts Optimizer /wp-admin/tools.php?page=lcso_settings | 1,177 | 1.93 | 33.21 | 48.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lc-scripts-optimizer/ajax.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lc-scripts-optimizer/classes/frontend.php:34
- > PHP Fatal error
Uncaught Error: Class 'lcso_engine' not found in wp-content/plugins/lc-scripts-optimizer/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lc-scripts-optimizer/lc_scripts_optimizer.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lc-scripts-optimizer/frontend.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
lc-scripts-optimizer/lc_scripts_optimizer.php 92% from 13 tests
Analyzing the main PHP file in "LC Scripts Optimizer" version 1.4.0
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lc-scripts-optimizer.php" instead of "lc_scripts_optimizer.php")
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
Success! There were no dangerous files found in this plugin8,258 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 4 | 88 | 0 | 3,267 |
JavaScript | 7 | 229 | 53 | 2,342 |
PHP | 9 | 751 | 390 | 1,697 |
CSS | 6 | 81 | 39 | 874 |
PO File | 1 | 167 | 359 | 78 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 6.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 58.93% |
▷ Protected methods | 11 | 19.64% |
▷ Private methods | 12 | 21.43% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
js/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
js/chosen/docsupport/oss-credit.png | 6.55KB | 3.26KB | ▼ 50.17% |
js/chosen/docsupport/chosen.png | 3.39KB | 2.08KB | ▼ 38.62% |