84% simple-tabber-widget

Code Review | Tabber Widget

WordPress plugin Tabber Widget scored84%from 54 tests.

About plugin

  • Plugin page: simple-tabber-widget
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Jan 21, 2015
  • Number of updates: 13
  • Update frequency: every 10.2 days
  • Top authors: dipto99 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,307 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
Installer ran successfully

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

An overview of server-side resources used by Tabber Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0154.16 ▲15.19
Dashboard /wp-admin3.31 ▲0.0147.40 ▼3.91
Posts /wp-admin/edit.php3.37 ▲0.0146.57 ▼3.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.21 ▼13.50
Media Library /wp-admin/upload.php3.24 ▲0.0131.74 ▼3.70

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_simple_tabber_element
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Tabber Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.42 ▼0.949.95 ▲7.9843.54 ▲0.89
Dashboard /wp-admin2,198 ▲185.58 ▼0.0595.25 ▲4.1041.17 ▼4.94
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0240.16 ▲5.6936.20 ▼1.40
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▼0.33685.56 ▲35.0255.02 ▼1.71
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0795.71 ▼11.8143.20 ▼1.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_simple_tabber_element
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-tabber-widget/plugin-functions.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Simple Tabber Widget on your site.), #2 (Simple Tabber Widget on wordpress widget page.)
You can take inspiration from this readme.txt

simple-tabber-widget/plugin-functions.php 92% from 13 tests

The entry point to "Tabber Widget" version 2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-tabber-widget.php" instead of "plugin-functions.php")

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
No dangerous file extensions were detected146 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1203179
CSS11053
JavaScript10114

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshot-1.png11.95KB6.49KB▼ 45.67%
Screenshot-2.png9.25KB5.45KB▼ 41.15%