84% tabs-block

Code Review | Tabs Block

WordPress plugin Tabs Block scored 84% from 54 tests.

About plugin

  • Plugin page: tabs-block
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2020
  • Latest release: Sep 5, 2023
  • Number of updates: 7
  • Update frequency: every 145.9 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active / 2,431 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Tabs Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.51 ▼5.66
Dashboard /wp-admin3.31 ▲0.0149.03 ▼2.15
Posts /wp-admin/edit.php3.36 ▲0.0151.45 ▲7.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.15 ▼12.92
Media Library /wp-admin/upload.php3.23 ▲0.0137.04 ▲4.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Tabs Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲18713.82 ▼0.555.65 ▲3.8639.63 ▼7.26
Dashboard /wp-admin2,209 ▲185.87 ▲0.94103.97 ▼18.7238.40 ▼6.39
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0435.13 ▼0.3931.04 ▼1.72
Add New Post /wp-admin/post-new.php6,583 ▲5,06929.15 ▲11.65904.59 ▲236.0655.80 ▼15.94
Media Library /wp-admin/upload.php1,385 ▼34.16 ▼0.0395.68 ▼5.0042.69 ▼2.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× 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/tabs-block/tabs-block.php:113

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Screenshots: A description for screenshot #3 is required in tabs-block/assets to your readme.txt
  • Screenshots: Please add an image for screenshot #4 (Tab Block)
The official readme.txt might help

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

The entry point to "Tabs Block" version 1.0.0 is a PHP file that has certain tags in its header comment area
139 characters long description:
Tabs Block is a simple plugin that adds a Gutenberg block for adding Tabs content to your posts and pages. Fully responsive and accessible.

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 plugin197 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript223088
CSS19063
PHP1254346

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected