83% mt-tabs

Code Review | MT Tabs

WordPress plugin MT Tabs scored83%from 54 tests.

About plugin

  • Plugin page: mt-tabs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Jul 10, 2014
  • Latest release: Jul 10, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: megatemas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,094 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by MT Tabs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.42 ▼0.75
Dashboard /wp-admin3.33 ▼0.0147.35 ▼14.92
Posts /wp-admin/edit.php3.38 ▲0.0348.51 ▲1.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.99 ▼8.83
Media Library /wp-admin/upload.php3.25 ▲0.0334.96 ▼0.26

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

MT Tabs: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.78 ▼0.586.41 ▲4.4344.15 ▲1.44
Dashboard /wp-admin2,206 ▲155.90 ▲1.02107.98 ▲1.1741.01 ▼4.17
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0034.75 ▲1.4932.46 ▼5.24
Add New Post /wp-admin/post-new.php1,538 ▲2423.50 ▲5.87652.15 ▼20.1654.48 ▼0.56
Media Library /wp-admin/upload.php1,382 ▼64.27 ▲0.0298.57 ▼17.4741.25 ▼7.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/mt-tabs/index.php:11
    • > PHP Fatal error
      Uncaught Error: Class '_WP_Editors' not found in wp-content/plugins/mt-tabs/tinymce-lang.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === mt-tabs === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Default styling), #2 (Accordion style), #3 (New TinyMCE button to create the shortcode quickly.)
The official readme.txt might help

mt-tabs/index.php 92% from 13 tests

The entry point to "MT Tabs" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mt-tabs.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected242 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP25712117
JavaScript241063
PO File281642
CSS11220

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.23KB4.78KB▼ 53.26%
screenshot-3.png31.74KB14.01KB▼ 55.86%
screenshot-2.png10.36KB4.67KB▼ 54.88%