84% simple-tabs-block

Code Review | Simple Tabs Block

WordPress plugin Simple Tabs Block scored84%from 54 tests.

About plugin

  • Plugin page: simple-tabs-block
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 26, 2022
  • Latest release: Jun 24, 2023
  • Number of updates: 9
  • Update frequency: every 47.8 days
  • Top authors: cloudcatch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,443 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.48ms] Passed 4 tests

Server-side resources used by Simple Tabs Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.98 ▼5.21
Dashboard /wp-admin3.33 ▲0.0348.18 ▼1.12
Posts /wp-admin/edit.php3.38 ▲0.0347.43 ▼8.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.11 ▼2.20
Media Library /wp-admin/upload.php3.26 ▲0.0336.20 ▼1.92

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Tabs Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲614.33 ▲0.041.65 ▼0.4042.28 ▲0.84
Dashboard /wp-admin2,198 ▲215.56 ▲0.0284.82 ▼7.3640.75 ▼0.58
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0633.84 ▼1.7136.04 ▼3.84
Add New Post /wp-admin/post-new.php6,202 ▲4,67619.25 ▼4.05933.34 ▲255.7542.00 ▼10.01
Media Library /wp-admin/upload.php1,394 ▼64.18 ▼0.00100.12 ▼11.5145.19 ▼0.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-tabs-block/simple-tabs-block.php:29

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: tab, block, tabs

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

This is the main PHP file of "Simple Tabs Block" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
Create rich tabbed layouts to organize information in a simple way using Simple Tabs Block

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin196 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON200165
PHP452922
JavaScript3047
CSS3102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin