84% wp-tabbed-widget

Code Review | WP Tabbed Widget

WordPress plugin WP Tabbed Widget scored84%from 54 tests.

About plugin

  • Plugin page: wp-tabbed-widget
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: Jul 30, 2017
  • Number of updates: 13
  • Update frequency: every 41.8 days
  • Top authors: FameThemes (76.92%)shrimp2t (30.77%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /9,927 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by WP Tabbed Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.68 ▼0.39
Dashboard /wp-admin3.36 ▲0.0244.89 ▼15.72
Posts /wp-admin/edit.php3.41 ▲0.0647.98 ▲3.01
Add New Post /wp-admin/post-new.php5.94 ▲0.0680.30 ▼20.21
Media Library /wp-admin/upload.php3.28 ▲0.0533.82 ▼1.79

Server storage [IO: ▲0.14MB] [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: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_wp-tabbed-widget
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Tabbed Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.46 ▲0.071.80 ▲0.0139.58 ▼4.46
Dashboard /wp-admin2,209 ▲214.86 ▼1.0098.21 ▼21.2339.32 ▼6.27
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0138.83 ▲3.5033.69 ▲1.30
Add New Post /wp-admin/post-new.php1,533 ▼023.19 ▲0.14642.07 ▼14.9458.88 ▲7.36
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.05102.19 ▲6.4343.29 ▼1.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_wp-tabbed-widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-tabbed-widget/wp-tabbed-widget.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-tabbed-widget === )
You can look at the official readme.txt

wp-tabbed-widget/wp-tabbed-widget.php Passed 13 tests

The entry point to "WP Tabbed Widget" version 1.0.2 is a PHP file that has certain tags in its header comment area
62 characters long description:
Display all your favorites widgets into a tabbed style widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected710 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP17370311
CSS2321213
JavaScript25414186

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.34
Average class complexity20.00
▷ Minimum class complexity9.00
▷ Maximum class complexity31.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png28.93KB6.99KB▼ 75.83%
screenshot-1.png81.22KB20.65KB▼ 74.57%