84% woo-tags-to-tab

Code Review | Woo Tags To Tab

WordPress plugin Woo Tags To Tab scored 84% from 54 tests.

About plugin

  • Plugin page: woo-tags-to-tab
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2017
  • Latest release: Apr 20, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: barfaraz (100%)Otto42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.02ms] Passed 4 tests

This is a short check of server-side resources used by Woo Tags To Tab
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.49 ▼6.30
Dashboard /wp-admin3.31 ▲0.0144.08 ▼5.76
Posts /wp-admin/edit.php3.36 ▲0.0046.48 ▼1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.73 ▼6.33
Media Library /wp-admin/upload.php3.23 ▲0.0035.95 ▲2.88

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Tags To Tab
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.23 ▼1.134.56 ▲2.4344.69 ▼6.91
Dashboard /wp-admin2,209 ▲244.84 ▼0.08102.34 ▼4.8439.34 ▼6.75
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0341.15 ▲0.8335.11 ▼1.28
Add New Post /wp-admin/post-new.php1,533 ▼023.12 ▼0.53585.10 ▼20.4357.87 ▼1.82
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.04101.19 ▼2.9642.24 ▼1.04

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-tags-to-tab/woo-tags-to-tab.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Product Page)
Please take inspiration from this readme.txt

woo-tags-to-tab/woo-tags-to-tab.php Passed 13 tests

The main PHP script in "Woo Tags To Tab" version 1.0.0 is automatically included on every request by WordPress
67 characters long description:
Remove Tags From Product Page Meta And Add Tags Tab For Woocommerce

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
Good job! No executable or dangerous file extensions detected40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2162440

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions4
▷ Named functions4100.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