84% kings-tab-slider

Code Review | Kings Tab Slider

WordPress plugin Kings Tab Slider scored84%from 54 tests.

About plugin

  • Plugin page: kings-tab-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.3-4.0
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Oct 13, 2014
  • Number of updates: 11
  • Update frequency: every 13.2 days
  • Top authors: KingsRRF (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /4,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.81ms] Passed 4 tests

An overview of server-side resources used by Kings Tab Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.88 ▼6.28
Dashboard /wp-admin3.33 ▲0.0347.09 ▼2.22
Posts /wp-admin/edit.php3.38 ▲0.0347.56 ▼2.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.48 ▼8.22
Media Library /wp-admin/upload.php3.26 ▲0.0332.77 ▼0.64
Tabs /wp-admin/edit.php?post_type=tabslider-items3.3043.01
Tab Category /wp-admin/edit-tags.php?taxonomy=tabslider_cat&post_type=tabslider-items3.2532.14
Add New /wp-admin/post-new.php?post_type=tabslider-items3.3851.48

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Kings Tab Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲23313.82 ▼0.465.13 ▲2.8544.05 ▼4.49
Dashboard /wp-admin2,247 ▲595.84 ▼0.0495.65 ▼4.0141.60 ▼3.01
Posts /wp-admin/edit.php2,133 ▲442.03 ▲0.0339.91 ▼6.2234.19 ▼2.54
Add New Post /wp-admin/post-new.php1,550 ▲3623.13 ▲5.59659.10 ▼19.8349.10 ▼5.14
Media Library /wp-admin/upload.php1,423 ▲384.27 ▼0.02100.31 ▲4.7044.14 ▲1.08
Tabs /wp-admin/edit.php?post_type=tabslider-items1,1112.0232.3729.44
Tab Category /wp-admin/edit-tags.php?taxonomy=tabslider_cat&post_type=tabslider-items1,3062.2925.9026.86
Add New /wp-admin/post-new.php?post_type=tabslider-items2,3897.66166.0764.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kings-tab-slider/plugin-hook.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: tab, tab slider, slider, colorful tabs, responsive tab...

kings-tab-slider/plugin-hook.php 92% from 13 tests

"Kings Tab Slider" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kings-tab-slider.php" instead of "plugin-hook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin300 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS22618215
PHP1341382
JavaScript30483

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/menu.png3.50KB0.10KB▼ 97.18%
images/arrow.png2.09KB0.99KB▼ 52.61%