79% jet-style-manager

Code Review | JetStyleManager for Gutenberg

WordPress plugin JetStyleManager for Gutenberg scored79%from 54 tests.

About plugin

  • Plugin page: jet-style-manager
  • Plugin version: 1.3.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 29, 2021
  • Latest release: Mar 14, 2023
  • Number of updates: 16
  • Update frequency: every 48.4 days
  • Top authors: crocoblock (68.75%)jetmonsters (37.5%)

Code review

54 tests

User reviews

9 reviews

Install metrics

20,000+ active /125,607 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼4.00ms] Passed 4 tests

A check of server-side resources used by JetStyleManager for Gutenberg
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2138.03 ▼3.43
Dashboard /wp-admin3.57 ▲0.2746.13 ▲0.67
Posts /wp-admin/edit.php3.62 ▲0.2647.51 ▼1.57
Add New Post /wp-admin/post-new.php6.09 ▲0.2082.39 ▼11.65
Media Library /wp-admin/upload.php3.43 ▲0.2035.14 ▲2.09

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 61 new files
Database: 1 new table, 6 new options
New tables
wp_jet_widgets_styles
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for JetStyleManager for Gutenberg
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.071.59 ▼0.5941.97 ▼4.60
Dashboard /wp-admin2,209 ▲185.92 ▲1.03101.33 ▲1.9439.69 ▲0.62
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0240.18 ▲1.8034.15 ▲1.10
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▲0.10670.77 ▼2.3469.48 ▲5.51
Media Library /wp-admin/upload.php1,385 ▼34.27 ▲0.1393.37 ▼3.1540.35 ▼1.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_jet_widgets_styles
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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 SRP test was a success

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: The official readme.txt is a good inspiration

jet-style-manager/jet-style-manager.php 92% from 13 tests

The entry point to "JetStyleManager for Gutenberg" version 1.3.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin5,666 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21481682,272
PHP156816751,866
Markdown2953846
JSON200360
Sass2219320
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity18.14
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods143
▷ Static methods128.39%
▷ Public methods12889.51%
▷ Protected methods21.40%
▷ Private methods139.09%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants12
▷ Global constants541.67%
▷ Class constants758.33%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
documentation/text.png0.91KB0.66KB▼ 27.84%
documentation/color-picker.png6.21KB3.29KB▼ 46.94%
documentation/choose.png1.85KB1.31KB▼ 29.39%
documentation/responsive.png14.91KB5.02KB▼ 66.32%
documentation/sidebar.png24.11KB6.64KB▼ 72.45%