84% lsx-blog-customizer

Code Review | LSX Blog Customizer

WordPress plugin LSX Blog Customizer scored84%from 54 tests.

About plugin

  • Plugin page: lsx-blog-customizer
  • Plugin version: 1.4.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 28, 2018
  • Latest release: Aug 18, 2023
  • Number of updates: 49
  • Update frequency: every 40.2 days
  • Top authors: feedmymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,428 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.80ms] Passed 4 tests

Server-side resources used by LSX Blog Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1540.75 ▲2.57
Dashboard /wp-admin3.46 ▲0.1645.36 ▼1.42
Posts /wp-admin/edit.php3.51 ▲0.1648.23 ▲0.97
Add New Post /wp-admin/post-new.php6.05 ▲0.1784.31 ▼11.29
Media Library /wp-admin/upload.php3.38 ▲0.1533.47 ▼3.45

Server storage [IO: ▲3.56MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 416 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_lsx_blog_customizer_widget_terms
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
widget_lsx_blog_customizer_widget_posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for LSX Blog Customizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12613.43 ▼1.148.63 ▲6.9037.58 ▲0.17
Dashboard /wp-admin2,209 ▲355.70 ▲0.1192.84 ▲6.0437.16 ▼2.00
Posts /wp-admin/edit.php2,111 ▲142.04 ▲0.1039.55 ▲3.1634.96 ▲2.43
Add New Post /wp-admin/post-new.php1,533 ▲723.05 ▼0.60676.36 ▼40.0153.33 ▼1.64
Media Library /wp-admin/upload.php1,408 ▲54.29 ▲0.09103.92 ▲7.2344.01 ▲1.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_lsx_blog_customizer_widget_posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_lsx_blog_customizer_widget_terms
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 55× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/lsx-blog-customizer/vendor/CMB2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/lsx-blog-customizer/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/lsx-blog-customizer/vendor/CMB2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/lsx-blog-customizer/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/lsx-blog-customizer/vendor/CMB2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
    • > PHP Warning
      Use of undefined constant LSX_BLOG_CUSTOMIZER_PATH - assumed 'LSX_BLOG_CUSTOMIZER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lsx-blog-customizer/classes/class-lsx-blog-customizer.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/lsx-blog-customizer/vendor/CMB2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/lsx-blog-customizer/vendor/CMB2/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/lsx-blog-customizer/vendor/CMB2/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lsx-blog-customizer/includes/functions.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 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
5 plugin tags: blog customizer, related posts, blog posts, lsx, customizer

lsx-blog-customizer/lsx-blog-customizer.php Passed 13 tests

The main PHP script in "LSX Blog Customizer" version 1.4.7 is automatically included on every request by WordPress
116 characters long description:
The LSX Blog Customizer extension gives you complete control over the appearance of your LSX-powered WordPress blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected55,284 lines of code in 259 files:
LanguageFilesBlank linesComment linesLines of code
PO File12114,41718,60732,540
PHP712,4106,5218,795
CSS206521,2245,759
JavaScript171,2262,5704,513
Sass225183682,628
Markdown33080820
YAML450185
XML113944

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity20.59
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity3.51
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes76
▷ Abstract classes911.84%
▷ Concrete classes6788.16%
▷ Final classes00.00%
Methods589
▷ Static methods8814.94%
▷ Public methods49684.21%
▷ Protected methods8915.11%
▷ Private methods40.68%
Functions30
▷ Named functions2686.67%
▷ Anonymous functions413.33%
Constants13
▷ Global constants753.85%
▷ Class constants646.15%
▷ Public constants6100.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
15 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/CMB2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
vendor/CMB2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
vendor/CMB2/images/ui-icons_888888_256x240.png4.28KB4.11KB▼ 4.17%
vendor/CMB2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
vendor/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%