89% gutena-tabs

Code Review | Gutena Tabs

WordPress plugin Gutena Tabs scored89%from 54 tests.

About plugin

  • Plugin page: gutena-tabs
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Jan 20, 2023
  • Latest release: Apr 4, 2023
  • Number of updates: 7
  • Update frequency: every 11.7 days
  • Top authors: expresstech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /6,925 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
This plugin's installer ran successfully

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

Server-side resources used by Gutena Tabs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0741.47 ▲4.07
Dashboard /wp-admin3.36 ▲0.0145.95 ▼10.46
Posts /wp-admin/edit.php3.41 ▲0.0543.80 ▲0.17
Add New Post /wp-admin/post-new.php5.95 ▲0.0793.82 ▼9.63
Media Library /wp-admin/upload.php3.28 ▲0.0538.07 ▲2.37

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

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

Browser metrics Passed 4 tests

Gutena Tabs: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.28 ▼0.071.72 ▲0.2942.69 ▲0.49
Dashboard /wp-admin2,195 ▲215.59 ▲0.0192.83 ▲6.8241.06 ▼2.99
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0333.22 ▼1.1534.15 ▲2.15
Add New Post /wp-admin/post-new.php6,392 ▲4,86529.23 ▲5.93977.53 ▲295.6044.97 ▼15.36
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.0392.52 ▼18.3344.53 ▼1.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #13, #2, #3, #4, #5, #6, #7, #8, #9 in gutena-tabs/assets to your readme.txt
Please take inspiration from this readme.txt

gutena-tabs/gutena-tabs.php 92% from 13 tests

The primary PHP file in "Gutena Tabs" version 1.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 311 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin504 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JSON200263
PHP652135210
SVG50020
JavaScript4037
CSS4004

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity15.50
▷ Minimum class complexity9.00
▷ Maximum class complexity22.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/gutena/gutena-ecosys-onboard/assets/cta/bg.png6.31KB3.12KB▼ 50.59%