72% slicko-for-elementor

Code Review | Slicko

WordPress plugin Slicko scored72%from 54 tests.

About plugin

  • Plugin page: slicko-for-elementor
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 27, 2022
  • Latest release: Jul 28, 2022
  • Number of updates: 38
  • Update frequency: every 3.3 days
  • Top authors: wpgrids (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲1.30MB] [CPU: ▲7.18ms] Passed 4 tests

Analyzing server-side resources used by Slicko
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.28 ▲0.8239.91 ▲0.36
Dashboard /wp-admin4.81 ▲1.5159.80 ▲10.06
Posts /wp-admin/edit.php4.86 ▲1.5059.06 ▲10.55
Add New Post /wp-admin/post-new.php7.33 ▲1.45105.28 ▲9.31
Media Library /wp-admin/upload.php4.67 ▲1.4448.05 ▲8.99
Import Demo Data /wp-admin/admin.php?page=pt-one-click-demo-import4.5434.49
All Slide /wp-admin/edit.php?post_type=slicko_slide4.7144.14
All Mega Menus /wp-admin/edit.php?post_type=slicko_megamenu4.7144.80
Add New Slide /wp-admin/post-new.php?post_type=slicko_slide4.8955.75
All Footers /wp-admin/edit.php?post_type=slicko_footer4.7144.73
Import Demo Data /wp-admin/themes.php?page=one-click-demo-import4.7874.90
All Headers /wp-admin/edit.php?post_type=slicko_header4.7165.13

Server storage [IO: ▲3.14MB] [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: 212 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Slicko
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲10014.35 ▼0.361.62 ▼0.4137.34 ▼5.80
Dashboard /wp-admin2,283 ▲1065.60 ▲0.0790.31 ▼1.6140.66 ▼1.36
Posts /wp-admin/edit.php2,185 ▲851.96 ▼0.0043.58 ▲4.9538.88 ▲2.25
Add New Post /wp-admin/post-new.php1,596 ▲6123.07 ▲4.97641.68 ▲1.6964.72 ▲2.33
Media Library /wp-admin/upload.php1,488 ▲884.23 ▲0.0298.87 ▼12.8447.67 ▲0.56
Import Demo Data /wp-admin/admin.php?page=pt-one-click-demo-import280.420.094.24
All Slide /wp-admin/edit.php?post_type=slicko_slide1,1461.9533.3530.36
All Mega Menus /wp-admin/edit.php?post_type=slicko_megamenu1,1491.9632.8633.09
Add New Slide /wp-admin/post-new.php?post_type=slicko_slide2,2877.70169.6665.01
All Footers /wp-admin/edit.php?post_type=slicko_footer1,1481.9934.9228.83
Import Demo Data /wp-admin/themes.php?page=one-click-demo-import1,2582.0524.7058.70
All Headers /wp-admin/edit.php?post_type=slicko_header1,1511.9932.9629.89

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/slicko-for-elementor/lib/ocdi/ocdi.php
    • > /wp-content/plugins/slicko-for-elementor/lib/ocdi/github/one-click-demo-import/one-click-demo-import.php
  • 41× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/slicko-for-elementor/lib/ocdi/vendor/awesomemotive/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/slicko-for-elementor/lib/ocdi/inc/WPCLICommands.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/slicko-for-elementor/inc/demo-setup.php:4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/slicko-for-elementor/lib/ocdi/inc/PluginInstallerSkin.php on line 11
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/slicko-for-elementor/lib/ocdi/github/one-click-demo-import/tests/bootstrap.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/slicko-for-elementor/lib/ocdi/vendor/awesomemotive/wp-content-importer-v2/src/WXRImporter.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'OCDI\\PluginInstaller' not found in wp-content/plugins/slicko-for-elementor/lib/ocdi/views/install-plugins.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slicko-for-elementor/inc/Metabox/nav.php:42
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/slicko-for-elementor/lib/ocdi/inc/PluginInstallerSkinSilent.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/slicko-for-elementor/lib/ocdi/github/one-click-demo-import/tests/test-one-click-demo-import.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=pt-one-click-demo-import
    • > Network (severe)
    wp-admin/admin.php?page=pt-one-click-demo-import - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

slicko-for-elementor/slicko.php 77% from 13 tests

"Slicko" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("slicko-for-elementor.php" instead of "slicko.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Git Repository: A Git repository was detected inside this plugin

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
No dangerous file extensions were detected45,499 lines of code in 145 files:
LanguageFilesBlank linesComment linesLines of code
PHP773,3964,33726,134
CSS9982897,276
JSON7005,692
XML122854132,520
JavaScript133893471,748
Sass1208111,011
SVG1900489
Markdown31970445
Bourne Shell43622184

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity20.70
▷ Minimum class complexity1.00
▷ Maximum class complexity290.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces11
Interfaces0
Traits2
Classes78
▷ Abstract classes00.00%
▷ Concrete classes78100.00%
▷ Final classes33.85%
Methods660
▷ Static methods10515.91%
▷ Public methods46570.45%
▷ Protected methods11417.27%
▷ Private methods8112.27%
Functions47
▷ Named functions1634.04%
▷ Anonymous functions3165.96%
Constants25
▷ Global constants2080.00%
▷ Class constants520.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin