78% tabs-maker

Code Review | Tabs Maker

WordPress plugin Tabs Maker scored 78% from 54 tests.

About plugin

  • Plugin page: tabs-maker
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1
  • WordPress version: 6.3.1
  • First release: Apr 23, 2018
  • Latest release: Nov 2, 2022
  • Number of updates: 30
  • Update frequency: every 55.5 days
  • Top authors: html5maps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,163 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.91ms] Passed 4 tests

An overview of server-side resources used by Tabs Maker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.37 ▼2.19
Dashboard /wp-admin3.35 ▲0.0445.06 ▼3.61
Posts /wp-admin/edit.php3.40 ▲0.0445.69 ▼1.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.66 ▼8.36
Media Library /wp-admin/upload.php3.27 ▲0.0435.00 ▲0.36
Manage tab sets /wp-admin/edit.php?post_type=fs_tabs3.2934.46
Add new tab set /wp-admin/post-new.php?post_type=fs_tabs3.3344.19

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Tabs Maker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,066 ▲33113.78 ▼0.607.14 ▲5.5140.88 ▲1.46
Dashboard /wp-admin2,242 ▲514.89 ▼0.02107.49 ▼9.8542.18 ▼1.91
Posts /wp-admin/edit.php2,125 ▲332.06 ▲0.0240.67 ▲2.2437.69 ▲3.17
Add New Post /wp-admin/post-new.php1,546 ▲3223.25 ▲5.67687.78 ▲30.4362.64 ▲13.03
Media Library /wp-admin/upload.php1,421 ▲334.23 ▲0.0698.71 ▲3.3846.30 ▲4.24
Manage tab sets /wp-admin/edit.php?post_type=fs_tabs1,1112.1534.8729.08
Add new tab set /wp-admin/post-new.php?post_type=fs_tabs2,3327.29150.18110.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=fs_tabs
    • > Notice in wp-content/plugins/tabs-maker/include/fstm-header-scripts.php+33
    Undefined index: post

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
Almost there! Just fix the following items
  • 8× 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/tabs-maker/include/fstm-header-scripts.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabs-maker/include/fstm-ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabs-maker/include/fstm-post-type.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabs-maker/include/fstm-clone.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tabs-maker/include/fstm-shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabs-maker/include/fstm-post-type-custom-fields.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabs-maker/include/fstm-scripts_and_styles.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tabs-maker/tabs.php:12

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)
No browser errors were detected

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
8 plugin tags: tabs plugin, tab plugin, jquery tabs, tabs maker, tabs builder...

tabs-maker/tabs.php 92% from 13 tests

The main file in "Tabs Maker" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tabs-maker.php" instead of "tabs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin12,052 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
CSS121,829444,374
SVG30122,829
Sass1643341,869
LESS1641511,836
PHP1018859814
JavaScript28321330

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions41
▷ Named functions41100.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
3 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/verticallefttabs.png3.55KB2.35KB▼ 33.93%
images/image_508_1250.png111.66KB121.27KB0.00%
images/horizontaltoptabs.png7.23KB4.59KB▼ 36.44%