83% analogwp-templates

Code Review | Style Kits - Advanced Theme Styles for Elementor

WordPress plugin Style Kits - Advanced Theme Styles for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: analogwp-templates
  • Plugin version: 2.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2019
  • Latest release: Sep 15, 2023
  • Number of updates: 180
  • Update frequency: every 9.3 days
  • Top authors: mauryaratan (100%)

Code review

54 tests

User reviews

41 reviews

Install metrics

10,000+ active /345,245 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.01MB] [CPU: ▼5.54ms] Passed 4 tests

An overview of server-side resources used by Style Kits - Advanced Theme Styles for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.02 ▲2.50
Dashboard /wp-admin3.32 ▼0.0246.53 ▼12.68
Posts /wp-admin/edit.php3.38 ▲0.0244.14 ▲2.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.81 ▼10.26
Media Library /wp-admin/upload.php3.25 ▲0.0231.92 ▼1.58
Welcome to Style Kits /wp-admin/admin.php?page=analog_onboarding3.2333.75

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 112 new files
Database: no new tables, 8 new options
New WordPress options
analog_onboarding
widget_recent-posts
db_upgraded
can_compress_scripts
ran_onboarding
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Style Kits - Advanced Theme Styles for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.40 ▼0.131.87 ▲0.1645.28 ▲1.33
Dashboard /wp-admin2,200 ▲235.58 ▲0.0093.46 ▲2.4742.31 ▲2.39
Posts /wp-admin/edit.php2,108 ▲82.15 ▲0.1333.67 ▼5.5533.17 ▼4.66
Add New Post /wp-admin/post-new.php1,543 ▲1218.38 ▼5.00597.62 ▼72.6358.50 ▲0.80
Media Library /wp-admin/upload.php1,408 ▲54.27 ▲0.10100.47 ▼0.3443.83 ▲0.29
Welcome to Style Kits /wp-admin/admin.php?page=analog_onboarding1,3452.0523.4231.65

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • analog_onboarding
    • ran_onboarding
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 35× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Analog\\Settings\\add_action() in wp-content/plugins/analogwp-templates/inc/register-settings.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Analog\\Elementor\\Kit\\add_action() in wp-content/plugins/analogwp-templates/inc/elementor/kit/Manager.php:53
    • > PHP Fatal error
      Uncaught Error: Interface 'Analog\\Dependencies\\enshrined\\svgSanitize\\data\\TagInterface' not found in wp-content/plugins/analogwp-templates/third-party/vendor/enshrined/svg-sanitize/src/data/AllowedTags.php:10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/analogwp-templates/inc/elementor/kit/Instance_List_Table.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'Analog\\Base' not found in wp-content/plugins/analogwp-templates/inc/admin/class-admin.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/analogwp-templates/inc/cli/commands.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Analog\\Options' not found in wp-content/plugins/analogwp-templates/inc/Core/SVGs/Allow.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Common\\Modules\\Finder\\Base_Category' not found in wp-content/plugins/analogwp-templates/inc/elementor/class-finder-shortcuts.php:15
    • > PHP Fatal error
      Namespace declaration statement has to be the very first statement or after any declare call in the script in wp-content/plugins/analogwp-templates/third-party/vendor/enshrined/svg-sanitize/src/svg-scanner.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Analog\\Settings\\views\\esc_html_e() in wp-content/plugins/analogwp-templates/inc/settings/views/html-admin-settings-gopro.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #3 (Tools for better global design control) image required
Please take inspiration from this readme.txt

analogwp-templates/analogwp-templates.php 85% from 13 tests

The main PHP file in "Style Kits - Advanced Theme Styles for Elementor" ver. 2.0.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 182 characters long)
  • 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin14,045 lines of code in 108 files:
LanguageFilesBlank linesComment linesLines of code
PHP802,2734,49311,272
CSS5302441,610
JavaScript141841121,090
YAML25054
SVG50017
JSON2002

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.50
▷ Minimum class complexity1.00
▷ Maximum class complexity147.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces24
Interfaces2
Traits2
Classes62
▷ Abstract classes11.61%
▷ Concrete classes6198.39%
▷ Final classes1016.39%
Methods494
▷ Static methods7314.78%
▷ Public methods41183.20%
▷ Protected methods5010.12%
▷ Private methods336.68%
Functions62
▷ Named functions3658.06%
▷ Anonymous functions2641.94%
Constants27
▷ Global constants829.63%
▷ Class constants1970.37%
▷ Public constants19100.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
1 compressed PNG file occupies 0.16MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/gopro_frames.png166.85KB181.06KB0.00%