79% style-manager

Code Review | Style Manager - Auto-magical system to style your entire WordPress site

WordPress plugin Style Manager - Auto-magical system to style your entire WordPress site scored79%from 54 tests.

About plugin

  • Plugin page: style-manager
  • Plugin version: 2.2.7
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 19, 2018
  • Latest release: Jun 16, 2022
  • Number of updates: 43
  • Update frequency: every 33.2 days
  • Top authors: pixelgrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /8,374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.56MB] [CPU: ▲7.91ms] Passed 4 tests

This is a short check of server-side resources used by Style Manager - Auto-magical system to style your entire WordPress site
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /6.78 ▲3.3244.22 ▲7.42
Dashboard /wp-admin7.20 ▲3.9073.07 ▲32.26
Posts /wp-admin/edit.php7.20 ▲3.8460.20 ▲17.39
Add New Post /wp-admin/post-new.php9.05 ▲3.1789.59 ▼2.57
Media Library /wp-admin/upload.php7.20 ▲3.9743.08 ▲9.38
Style Manager /wp-admin/options-general.php?page=style-manager7.2043.12

Server storage [IO: ▲13.01MB] [DB: ▲0.15MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 857 new files
Database: no new tables, 16 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
style_manager_design_assets_timestamp
pixelgrade_style_manager_customizer_opt_name_timestamp
widget_recent-comments
pixelgrade_style_manager_options_details_timestamp
pixelgrade_style_manager_customizer_config_timestamp
widget_recent-posts
pixelgrade_style_manager_options_minimal_details
style_manager_design_assets
...

Browser metrics Passed 4 tests

Checking browser requirements for Style Manager - Auto-magical system to style your entire WordPress site
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,220 ▲48518.79 ▲4.535.91 ▲4.2235.28 ▼4.15
Dashboard /wp-admin2,497 ▲3059.22 ▲4.26186.10 ▲67.1941.45 ▼4.68
Posts /wp-admin/edit.php2,409 ▲3206.13 ▲4.1685.31 ▲50.7733.21 ▲0.46
Add New Post /wp-admin/post-new.php1,609 ▲8920.00 ▼3.23740.50 ▲65.4839.28 ▼22.67
Media Library /wp-admin/upload.php1,536 ▲1486.58 ▲2.35107.13 ▲9.2045.34 ▲0.44
Style Manager /wp-admin/options-general.php?page=style-manager1,3946.78101.7949.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 15 options in the database
    • widget_recent-comments
    • pixelgrade_style_manager_settings
    • style_manager_design_assets_timestamp
    • pixelgrade_style_manager_options_details_timestamp
    • db_upgraded
    • style_manager_design_assets
    • pixelgrade_style_manager_options_minimal_details
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • ...

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/style-manager/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 191× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Pixelgrade\\StyleManager\\Vendor\\Cedaro\\WP\\Plugin\\AbstractHookProvider' not found in wp-content/plugins/style-manager/src/Customize/ThemeConfigs.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Event\\PersistentListener' not found in wp-content/plugins/style-manager/vendor/htmlburger/carbon-fields/core/Event/SingleEventListener.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/style-manager/vendor/htmlburger/carbon-fields/templates/Container/post_meta.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/style-manager/vendor/htmlburger/carbon-fields/core/Service/Legacy_Storage_Service_v_1_5.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Pixelgrade\\StyleManager\\Vendor\\Cedaro\\WP\\Plugin\\AbstractHookProvider' not found in wp-content/plugins/style-manager/src/Integration/TheEventsCalendar.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'Pixelgrade\\StyleManager\\Vendor\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/style-manager/vendor_prefixed/psr/container/src/NotFoundExceptionInterface.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/style-manager/src/Provider/PluginSettingsCFDatastore.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/style-manager/vendor/htmlburger/carbon-fields/core/Container/Broken_Container.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Pixelgrade\\StyleManager\\Vendor\\Psr\\Log\\LoggerInterface' not found in wp-content/plugins/style-manager/vendor_prefixed/psr/log/Psr/Log/AbstractLogger.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/style-manager/vendor/htmlburger/carbon-fields/templates/Container/comment_meta.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: colors, customizer, global styles, gutenberg, fonts...

style-manager/style-manager.php Passed 13 tests

The main file in "Style Manager - Auto-magical system to style your entire WordPress site" v. 2.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Auto-magical system to style your entire WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected65,009 lines of code in 788 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4119,0159,76528,507
PHP2705,25813,99923,921
JSON11605,868
CSS143811,1392,343
PO File268191,0202,202
Sass4833901,769
Markdown41210395
SVG4004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity12.28
▷ Minimum class complexity1.00
▷ Maximum class complexity243.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces46
Interfaces18
Traits5
Classes213
▷ Abstract classes146.57%
▷ Concrete classes19993.43%
▷ Final classes73.52%
Methods1,511
▷ Static methods20513.57%
▷ Public methods1,15576.44%
▷ Protected methods33922.44%
▷ Private methods171.13%
Functions283
▷ Named functions15454.42%
▷ Anonymous functions12945.58%
Constants86
▷ Global constants2225.58%
▷ Class constants6474.42%
▷ Public constants6398.44%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/default_radio_image.png2.62KB1.89KB▼ 27.94%