78% ultimate-metabox-tabs

Code Review | Ultimate Metabox Tabs

WordPress plugin Ultimate Metabox Tabs scored78%from 54 tests.

About plugin

  • Plugin page: ultimate-metabox-...
  • Plugin version: 0.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 3, 2012
  • Latest release: Apr 9, 2013
  • Number of updates: 27
  • Update frequency: every 7.0 days
  • Top authors: SilbinaryWolf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.03ms] Passed 4 tests

An overview of server-side resources used by Ultimate Metabox Tabs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.78 ▼1.75
Dashboard /wp-admin3.33 ▲0.0348.15 ▼1.63
Posts /wp-admin/edit.php3.38 ▲0.0344.41 ▼2.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.34 ▼14.26
Media Library /wp-admin/upload.php3.26 ▲0.0336.76 ▲2.81
Metabox Tabs /wp-admin/options-general.php?page=metabox-tabs3.2734.44

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate Metabox Tabs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.61 ▼0.984.58 ▲2.5336.56 ▼15.12
Dashboard /wp-admin2,210 ▲254.86 ▼0.0798.75 ▼5.1036.16 ▼9.78
Posts /wp-admin/edit.php2,093 ▲222.05 ▲0.0234.01 ▼1.3132.72 ▼1.06
Add New Post /wp-admin/post-new.php1,519 ▼1417.48 ▼5.86676.68 ▼16.2256.51 ▲4.38
Media Library /wp-admin/upload.php1,386 ▼24.22 ▼0.0196.65 ▼15.1144.86 ▼0.64
Metabox Tabs /wp-admin/options-general.php?page=metabox-tabs1,1322.0427.9924.80

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_type_object() in wp-content/plugins/ultimate-metabox-tabs/view/post.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ultimate-metabox-tabs/ultimate-metabox-tabs.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/ultimate-metabox-tabs/view/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-metabox-tabs/view/extension.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-metabox-tabs/view/patcher.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-metabox-tabs/view/extension-update.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=metabox-tabs
    • > Javascript (severe) in unknown
    /wp-content/plugins/ultimate-metabox-tabs/js/umt-post.js?ver=6.3.1 49:24 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots do not have images: #1 (The tabs in action. This illustrates their insertion just underneath the "Edit Post" heading.), #2 (The second tab is clicked, it now shows that there is a metabox available for editing and that the content can be hidden.), #3 (The admin editing page for the previous 2 screenshots. It shows that you need the Div ID of the metaboxes and that you can also hide the content with +the_content)
You can look at the official readme.txt

ultimate-metabox-tabs/ultimate-metabox-tabs.php Passed 13 tests

This is the main PHP file of "Ultimate Metabox Tabs" version 0.9.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
Adds extendable metabox tabs to your posts.

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
Everything looks great! No dangerous files found in this plugin1,920 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP141935521,554
CSS27110271
JavaScript2141795

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity25.57
▷ Minimum class complexity2.00
▷ Maximum class complexity137.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods56
▷ Static methods00.00%
▷ Public methods56100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
6 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/tab-button-bg.png0.12KB0.14KB0.00%
images/tab-selected-button-bg.png0.13KB0.14KB0.00%
screenshot-1.png66.47KB30.08KB▼ 54.74%
screenshot-2.png70.35KB26.14KB▼ 62.84%
screenshot-3.png49.26KB20.86KB▼ 57.65%