72% smarty-slick-tab

Code Review | Smarty Slick Tab

WordPress plugin Smarty Slick Tab scored72%from 54 tests.

About plugin

  • Plugin page: smarty-slick-tab
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 11, 2014
  • Latest release: Nov 14, 2014
  • Number of updates: 4
  • Update frequency: every 8.8 days
  • Top authors: awd_team (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,861 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.32ms] Passed 4 tests

A check of server-side resources used by Smarty Slick Tab
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0650.09 ▲8.59
Dashboard /wp-admin3.38 ▲0.0349.15 ▼15.43
Posts /wp-admin/edit.php3.41 ▲0.0549.46 ▲2.25
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.34 ▲7.56
Media Library /wp-admin/upload.php3.30 ▲0.0740.47 ▲4.35
Smarty Slick Tab /wp-admin/options-general.php?page=slick-tab/slick-tab3.28483.08

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 40 new options
New WordPress options
slick_tab_tab_title_close
slick_tab_window_url
slick_tab_credentials
slick_tab_open_top
slick_tab_borders
slick_tab_template_pick
slick_tab_tab_title_open
slick_tab_tab_width
slick_tab_list_pick
slick_tab_animation_speed
...

Browser metrics Passed 4 tests

Smarty Slick Tab: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,007 ▲26113.83 ▼0.4714.84 ▲13.1243.64 ▼4.22
Dashboard /wp-admin2,227 ▲364.99 ▼0.87109.29 ▲8.2936.43 ▼7.47
Posts /wp-admin/edit.php2,113 ▲212.24 ▲0.1839.87 ▼2.2936.72 ▲1.91
Add New Post /wp-admin/post-new.php1,523 ▼1923.18 ▲0.14679.22 ▲6.8458.18 ▼13.99
Media Library /wp-admin/upload.php1,412 ▲244.29 ▲0.07102.10 ▼2.8946.51 ▲0.22
Smarty Slick Tab /wp-admin/options-general.php?page=slick-tab/slick-tab1,5152.3239.6831.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/smarty-slick-tab/templates/WPLogin.php
    • > /wp-content/plugins/smarty-slick-tab/templates/Subscribe.php
    • > /wp-content/plugins/smarty-slick-tab/templates/Widget.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/smarty-slick-tab/slick-tab.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=slick-tab/slick-tab
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=slick-tab%2Fslick-tab 325:47 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
You can take inspiration from this readme.txt

smarty-slick-tab/slick-tab.php 92% from 13 tests

The principal PHP file in "Smarty Slick Tab" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smarty-slick-tab.php" instead of "slick-tab.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,372 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP5108140842
JavaScript31043337
CSS31563193

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity34.50
▷ Minimum class complexity32.00
▷ Maximum class complexity37.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/star.png0.74KB0.62KB▼ 15.98%
images/SlickTab.png1.58KB1.34KB▼ 14.68%