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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.23 ▼1.83 |
Dashboard /wp-admin | 3.06 ▼0.24 | 31.27 ▼19.10 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 24.84 ▼24.20 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 23.65 ▼70.40 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 23.09 ▼12.32 |
New TabShortcode /wp-admin/post-new.php?post_type=customtabshortcode | 3.06 | 21.08 |
Configuration /wp-admin/edit.php?post_type=customtabshortcode&page=Configuration | 3.06 | 24.34 |
TS List /wp-admin/edit.php?post_type=customtabshortcode | 3.06 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲77 | 13.62 ▼0.63 | 2.00 ▼0.01 | 42.45 ▼5.48 |
Dashboard /wp-admin | 2,240 ▲49 | 4.87 ▲0.00 | 108.13 ▼0.78 | 42.69 ▼3.68 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 1.99 ▼0.06 | 39.44 ▲1.21 | 35.74 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,540 ▲6 | 17.50 ▼5.64 | 661.03 ▼19.04 | 50.88 ▲1.59 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.24 ▲0.09 | 95.86 ▼3.64 | 41.33 ▼3.20 |
New TabShortcode /wp-admin/post-new.php?post_type=customtabshortcode | 2,391 | 3.52 | 92.69 | 48.54 |
Configuration /wp-admin/edit.php?post_type=customtabshortcode&page=Configuration | 1,746 | 3.02 | 74.28 | 32.53 |
TS List /wp-admin/edit.php?post_type=customtabshortcode | 1,092 | 1.93 | 30.43 | 31.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 56 | 21 | 573 |
PHP | 6 | 59 | 79 | 561 |
PO File | 3 | 137 | 187 | 346 |
CSS | 2 | 9 | 5 | 315 |
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 code | 0.33 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 8.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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