84% simple-tabs-shortcodes

Code Review | Simple Tabs Shortcodes

WordPress plugin Simple Tabs Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: simple-tabs-short...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Feb 8, 2017
  • Latest release: Apr 8, 2020
  • Number of updates: 25
  • Update frequency: every 47.4 days
  • Top authors: Beherit (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /5,068 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼4.04ms] Passed 4 tests

An overview of server-side resources used by Simple Tabs Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.86 ▼1.09
Dashboard /wp-admin3.32 ▼0.0348.45 ▼8.90
Posts /wp-admin/edit.php3.37 ▲0.0147.45 ▲3.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.02 ▼6.75
Media Library /wp-admin/upload.php3.24 ▲0.0133.39 ▲0.59

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Tabs Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.59 ▲0.221.73 ▼0.0737.03 ▼3.13
Dashboard /wp-admin2,192 ▲155.52 ▼0.0782.74 ▼7.2439.58 ▼3.83
Posts /wp-admin/edit.php2,097 ▼61.98 ▲0.0136.54 ▲0.6232.13 ▼5.35
Add New Post /wp-admin/post-new.php1,536 ▲818.13 ▼4.90627.79 ▼64.6364.87 ▲12.78
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.0896.90 ▼28.5441.68 ▼4.02

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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
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/simple-tabs-shortcodes/simple-tabs-shortcodes.php:25

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: shortcodes, tab, tabs

simple-tabs-shortcodes/simple-tabs-shortcodes.php Passed 13 tests

The main file in "Simple Tabs Shortcodes" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
114 characters long description:
Plugin adds shortcodes to place a page content in tabs. Uses a lightweight jQuery script, no additional CSS files.

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
Good job! No executable or dangerous file extensions detected68 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP153249
JavaScript20019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin