79% wp-tabber-widget

Code Review | Wp tabber widget

WordPress plugin Wp tabber widget scored79%from 54 tests.

About plugin

  • Plugin page: wp-tabber-widget
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 29
  • Update frequency: every 126.3 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /16,069 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.31ms] Passed 4 tests

An overview of server-side resources used by Wp tabber widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.97 ▲2.77
Dashboard /wp-admin3.32 ▲0.0148.73 ▼6.09
Posts /wp-admin/edit.php3.37 ▲0.0152.13 ▼2.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.23 ▼15.20
Media Library /wp-admin/upload.php3.24 ▲0.0134.73 ▲3.27
Wp tabber widget /wp-admin/options-general.php?page=wp-tabber-widget3.2734.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 8 new options
New tables
wp_gtabber
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
GTabber_Left
theysaidso_admin_options
GTabber_Right

Browser metrics Passed 4 tests

Checking browser requirements for Wp tabber widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.60 ▼0.619.93 ▲7.8543.10 ▲0.32
Dashboard /wp-admin2,213 ▲224.86 ▼0.96109.04 ▲1.0237.78 ▼2.83
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0139.38 ▼1.2734.10 ▼2.30
Add New Post /wp-admin/post-new.php1,536 ▲1723.30 ▲0.08660.71 ▲26.8552.09 ▲6.05
Media Library /wp-admin/upload.php1,386 ▼24.24 ▲0.06104.39 ▲2.7747.47 ▲4.18
Wp tabber widget /wp-admin/options-general.php?page=wp-tabber-widget1,1192.0523.6637.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-tabber-widget/pages/content-show.php
    • > /wp-content/plugins/wp-tabber-widget/pages/content-edit.php
    • > /wp-content/plugins/wp-tabber-widget/pages/content-add.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-tabber-widget/wp-tabber-widget.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-tabber-widget/wp-tabber-widget.php:21

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widget, plugin, tabber

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

"Wp tabber widget" version 4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
This is a jquery based lightweight plugin to create tab in the wordpress widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin881 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP56347643
PO File26985167
JavaScript218861
CSS1369
HTML1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/ico-hot-orange.png1.75KB0.85KB▼ 51.73%
inc/ico-hot-blue.png1.68KB0.76KB▼ 54.85%
inc/ico-hot-grey.png1.69KB0.75KB▼ 55.66%