62% custom-tabs-shortcodes

Code Review | Custom Tabs Shortcodes

WordPress plugin Custom Tabs Shortcodes scored62%from 54 tests.

About plugin

  • Plugin page: custom-tabs-short...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: May 8, 2017
  • Latest release: Feb 16, 2018
  • Number of updates: 9
  • Update frequency: every 31.6 days
  • Top authors: Merksk8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /825 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼31.51ms] Passed 4 tests

This is a short check of server-side resources used by Custom Tabs Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.23 ▼1.83
Dashboard /wp-admin3.06 ▼0.2431.27 ▼19.10
Posts /wp-admin/edit.php3.06 ▼0.3024.84 ▼24.20
Add New Post /wp-admin/post-new.php3.06 ▼2.8323.65 ▼70.40
Media Library /wp-admin/upload.php3.06 ▼0.1723.09 ▼12.32
New TabShortcode /wp-admin/post-new.php?post_type=customtabshortcode3.0621.08
Configuration /wp-admin/edit.php?post_type=customtabshortcode&page=Configuration3.0624.34
TS List /wp-admin/edit.php?post_type=customtabshortcode3.0623.81

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 16 new options
New WordPress options
cts_lunes
cts_color_defaults
cts_sabado
cts_icons
cts_viernes
widget_theysaidso_widget
cts_config
cts_jueves
theysaidso_admin_options
cts_martes
...

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Tabs Shortcodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7713.62 ▼0.632.00 ▼0.0142.45 ▼5.48
Dashboard /wp-admin2,240 ▲494.87 ▲0.00108.13 ▼0.7842.69 ▼3.68
Posts /wp-admin/edit.php2,123 ▲371.99 ▼0.0639.44 ▲1.2135.74 ▲2.93
Add New Post /wp-admin/post-new.php1,540 ▲617.50 ▼5.64661.03 ▼19.0450.88 ▲1.59
Media Library /wp-admin/upload.php1,419 ▲314.24 ▲0.0995.86 ▼3.6441.33 ▼3.20
New TabShortcode /wp-admin/post-new.php?post_type=customtabshortcode2,3913.5292.6948.54
Configuration /wp-admin/edit.php?post_type=customtabshortcode&page=Configuration1,7463.0274.2832.53
TS List /wp-admin/edit.php?post_type=customtabshortcode1,0921.9330.4331.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 16 options in the database
    • cts_jueves
    • cts_domingo
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • cts_miercoles
    • widget_recent-comments
    • cts_color_defaults
    • can_compress_scripts
    • cts_config
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=customtabshortcode
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
Please take a closer look at the following
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/custom-tabs-shortcodes/Custom-Tabs-Shortcodes.php
    • > /wp-content/plugins/custom-tabs-shortcodes/includes/cpt-tabs.php
    • > /wp-content/plugins/custom-tabs-shortcodes/includes/shortcode-variable.php
    • > /wp-content/plugins/custom-tabs-shortcodes/includes/shortcode.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-tabs-shortcodes/includes/admin-day.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tabs, custom, week, tab, daily

custom-tabs-shortcodes/Custom-Tabs-Shortcodes.php 85% from 13 tests

The principal PHP file in "Custom Tabs Shortcodes" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-tabs-shortcodes.php" instead of "Custom-Tabs-Shortcodes.php")
  • 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,795 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35621573
PHP65979561
PO File3137187346
CSS295315

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity8.40
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin