83% tabsy

Code Review | Tabsy

WordPress plugin Tabsy scored83%from 54 tests.

About plugin

  • Plugin page: tabsy
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Dec 11, 2016
  • Number of updates: 21
  • Update frequency: every 31.7 days
  • Top authors: phpbits (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /9,918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.07ms] Passed 4 tests

Server-side resources used by Tabsy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.84 ▼3.42
Dashboard /wp-admin3.33 ▲0.0349.26 ▲0.82
Posts /wp-admin/edit.php3.38 ▲0.0246.91 ▼3.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.46 ▼6.35
Media Library /wp-admin/upload.php3.25 ▲0.0235.75 ▼3.08

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Tabsy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.65 ▼0.655.25 ▲3.4538.37 ▼8.69
Dashboard /wp-admin2,206 ▲275.78 ▲0.90114.57 ▲2.9151.21 ▲6.94
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0033.20 ▼6.5633.12 ▼3.08
Add New Post /wp-admin/post-new.php1,534 ▲1523.27 ▲0.12694.99 ▲45.8463.37 ▼0.04
Media Library /wp-admin/upload.php1,382 ▼34.23 ▲0.05102.38 ▼6.3745.05 ▲0.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabsy/core/functions.enqueue.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabsy/core/functions.shortcode.php:23

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)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
You can look at the official readme.txt

tabsy/wp-tabsy.php 77% from 13 tests

"Tabsy" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tabsy.php" instead of "wp-tabsy.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,752 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS30121,794
SVG200577
JavaScript33036256
PHP32749125

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin