78% tabutility

Code Review | TabUtility

WordPress plugin TabUtility scored78%from 54 tests.

About plugin

  • Plugin page: tabutility
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8
  • WordPress version: 6.3.1
  • First release: Sep 4, 2017
  • Latest release: Sep 4, 2017
  • Number of updates: 6
  • Update frequency: every 6.3 days
  • Top authors: tobinbland1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /547 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by TabUtility
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.51 ▲4.87
Dashboard /wp-admin3.32 ▲0.0244.02 ▼2.13
Posts /wp-admin/edit.php3.37 ▲0.0248.71 ▲3.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.64 ▼7.92
Media Library /wp-admin/upload.php3.24 ▲0.0131.25 ▼2.31
TabUtility /wp-admin/options-general.php?page=tabutility3.2331.31

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

TabUtility: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.36 ▼1.221.56 ▼0.2240.40 ▼7.67
Dashboard /wp-admin2,210 ▲195.85 ▲0.97103.77 ▼2.6940.63 ▼1.19
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0335.50 ▲1.3732.34 ▼5.63
Add New Post /wp-admin/post-new.php1,517 ▼2617.54 ▼0.54670.44 ▲25.7655.32 ▼4.14
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.0097.06 ▼0.9840.75 ▼4.85
TabUtility /wp-admin/options-general.php?page=tabutility9862.0227.3930.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tabutility/includeIcons.php
    • > /wp-content/plugins/tabutility/includeFonts2.php
    • > /wp-content/plugins/tabutility/includeButton.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabutility/options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabutility/options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: bounce, attention, tabs, flash, tab...

tabutility/TabUtility.php 92% from 13 tests

Analyzing the main PHP file in "TabUtility" version 1.0
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tabutility.php" instead of "TabUtility.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin621 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP511912314
JavaScript111819307

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions22
▷ Named functions22100.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
9 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/warning.png4.13KB1.44KB▼ 65.15%
icons/info.png3.63KB1.03KB▼ 71.67%
icons/blank.png0.18KB0.09KB▼ 46.70%
screenshot1.png13.45KB6.25KB▼ 53.51%
icons/clock.png5.01KB1.68KB▼ 66.41%