74% arashtad-tabs

Code Review | Arashtad Tabs Plugin

WordPress plugin Arashtad Tabs Plugin scored74%from 54 tests.

About plugin

  • Plugin page: arashtad-tabs
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2017
  • Latest release: Sep 29, 2017
  • Number of updates: 8
  • Update frequency: every 35.1 days
  • Top authors: arashtad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /716 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.52MB] [CPU: ▼55.52ms] Passed 4 tests

A check of server-side resources used by Arashtad Tabs Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.48 ▼0.9910.61 ▼31.98
Dashboard /wp-admin2.50 ▼0.8511.37 ▼51.84
Posts /wp-admin/edit.php2.50 ▼0.8612.04 ▼39.55
Add New Post /wp-admin/post-new.php2.50 ▼3.3912.31 ▼98.71
Media Library /wp-admin/upload.php2.50 ▼0.7311.90 ▼25.31

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_artabs_widget
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Arashtad Tabs Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.92 ▼0.455.02 ▲3.3241.94 ▲0.28
Dashboard /wp-admin2,206 ▲155.85 ▲0.99106.53 ▼1.5842.75 ▲0.82
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0440.74 ▲4.4836.81 ▲3.52
Add New Post /wp-admin/post-new.php1,533 ▼423.53 ▲5.27641.90 ▼14.9454.45 ▼4.77
Media Library /wp-admin/upload.php1,385 ▼64.18 ▲0.0498.51 ▼1.3241.19 ▼4.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/arashtad-tabs/arashtad-tabs.php+52
    Undefined variable: text_domain
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_artabs_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/arashtad-tabs/arashtad-tabs.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget Backend), #2 (Default Style), #3 (Dip Style), #4 (Rounded Style), #5 (BootStrap Style), #6 (Easy Style), #7 (BootStrap Disjunct Style), #8 (Nude Style), #9 (Square Style), #10 (Colored Style), #11 (Square Disjunct Style), #12 (Dark Inverse Style), #13 (Dark Style), #14 (Square BootStrap Disjuct Style), #15 (Square BootStrap Style)
The official readme.txt might help

arashtad-tabs/arashtad-tabs.php Passed 13 tests

The principal PHP file in "Arashtad Tabs Plugin" v. 1.2 is loaded by WordPress automatically on each request
61 characters long description:
Responsive tabs widget for WordPress, created by Arashtad.com

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
No dangerous file extensions were detected1,725 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS14545756
PHP114042658
PO File2115121287
JavaScript181423
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity117.00
▷ Minimum class complexity117.00
▷ Maximum class complexity117.00
Average method complexity30.00
▷ Minimum method complexity2.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin