Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼0.38ms] Passed 4 tests
This is a short check of server-side resources used by LSX Customizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.55 | 69.67 ▲22.82 |
Dashboard /wp-admin | 4.07 ▲0.50 | 58.78 ▲2.68 |
Posts /wp-admin/edit.php | 4.12 ▲0.44 | 54.88 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.51 | 101.10 ▼10.62 |
Media Library /wp-admin/upload.php | 3.99 ▲0.50 | 45.01 ▲6.59 |
Server storage [IO: ▲7.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 215 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for LSX Customizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.49 ▼0.94 | 8.75 ▲7.04 | 40.26 ▼3.34 |
Dashboard /wp-admin | 2,198 ▲18 | 5.65 ▼0.04 | 89.98 ▼1.36 | 40.75 ▼2.42 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.99 ▼0.06 | 41.12 ▲1.27 | 34.52 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼14 | 17.88 ▼5.35 | 629.56 ▼59.07 | 58.93 ▲7.69 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.02 | 105.32 ▼3.88 | 47.27 ▲1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LSX_Customizer_Colour' not found in wp-content/plugins/lsx-customizer/classes/class-lsx-customizer-colour-footer.php:13
- > PHP Fatal error
Uncaught Error: Class 'LSX_Customizer_Colour' not found in wp-content/plugins/lsx-customizer/classes/class-lsx-customizer-colour-body.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/lsx-customizer/classes/class-lsx-customizer-colour-control.php:13
- > PHP Fatal error
Uncaught Error: Class 'LSX_Customizer' not found in wp-content/plugins/lsx-customizer/classes/class-lsx-customizer-core.php:13
- > PHP Fatal error
Uncaught Error: Class 'LSX_Customizer' not found in wp-content/plugins/lsx-customizer/classes/class-lsx-customizer-admin.php:13
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/lsx-customizer/vendor/leafo/scssphp/src/Formatter/Nested.php:22
- > PHP Fatal error
Uncaught Error: Class 'LSX_Customizer_Colour' not found in wp-content/plugins/lsx-customizer/classes/class-lsx-customizer-colour-button-tertiary.php:13
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/lsx-customizer/vendor/leafo/scssphp/src/Formatter/Debug.php:22
- > PHP Fatal error
Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/lsx-customizer/vendor/leafo/scssphp/src/Formatter/Crunched.php:22
- > PHP Fatal error
require_once(): Failed opening required 'LSX_CUSTOMIZER_PATHclasses/class-lsx-customizer-admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/lsx-customizer/classes/class-lsx-customizer.php on line 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: colours, lsx, woocommerce, customizer, layout
lsx-customizer/lsx-customizer.php Passed 13 tests
The main file in "LSX Customizer" v. 1.5.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
110 characters long description:
The LSX Customizer extension gives you complete control over the appearance of your LSX-powered WordPress site
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin28,600 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 74 | 1,676 | 877 | 14,444 |
PHP | 62 | 3,267 | 5,001 | 11,510 |
JavaScript | 10 | 54 | 257 | 1,604 |
CSS | 14 | 264 | 13 | 357 |
PO File | 1 | 137 | 210 | 287 |
YAML | 4 | 5 | 0 | 185 |
Markdown | 2 | 88 | 0 | 158 |
XML | 1 | 13 | 9 | 44 |
SVG | 6 | 0 | 0 | 6 |
JSON | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 132)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 37.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 961.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 132.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 527 | |
▷ Static methods | 8 | 1.52% |
▷ Public methods | 242 | 45.92% |
▷ Protected methods | 277 | 52.56% |
▷ Private methods | 8 | 1.52% |
Functions | 92 | |
▷ Named functions | 78 | 84.78% |
▷ Anonymous functions | 14 | 15.22% |
Constants | 66 | |
▷ Global constants | 4 | 6.06% |
▷ Class constants | 62 | 93.94% |
▷ Public constants | 62 | 100.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
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin/2cr.png | 0.18KB | 0.20KB | 0.00% |
assets/images/admin/header-hamburger.png | 10.86KB | 6.14KB | ▼ 43.48% |
assets/images/admin/header-central.png | 0.40KB | 0.14KB | ▼ 64.06% |
assets/images/admin/3cm.png | 0.17KB | 0.19KB | 0.00% |
assets/images/admin/3cl.png | 0.19KB | 0.23KB | 0.00% |