84% wp-taxonomy-tab

Code Review | Wp Taxonomy Tab

WordPress plugin Wp Taxonomy Tab scored84%from 54 tests.

About plugin

  • Plugin page: wp-taxonomy-tab
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 16, 2017
  • Latest release: May 4, 2019
  • Number of updates: 20
  • Update frequency: every 31.6 days
  • Top authors: anand000 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /974 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.50ms] Passed 4 tests

Analyzing server-side resources used by Wp Taxonomy Tab
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.91 ▼4.60
Dashboard /wp-admin3.39 ▲0.0951.72 ▼2.31
Posts /wp-admin/edit.php3.44 ▲0.0849.49 ▼6.30
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.45 ▼20.80
Media Library /wp-admin/upload.php3.31 ▲0.0837.33 ▼1.35
Add New WPT Tab post /wp-admin/post-new.php?post_type=wpttab_post3.3648.67
All Tab posts /wp-admin/edit.php?post_type=wpttab_post3.3539.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Wp Taxonomy Tab
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲19513.57 ▼0.669.73 ▲8.0541.96 ▲2.44
Dashboard /wp-admin2,225 ▲455.60 ▼0.0193.57 ▲6.2237.78 ▼7.90
Posts /wp-admin/edit.php2,127 ▲271.97 ▲0.0338.70 ▼0.9035.48 ▲1.51
Add New Post /wp-admin/post-new.php1,549 ▲2023.63 ▲0.51660.48 ▼0.4355.87 ▼0.22
Media Library /wp-admin/upload.php1,427 ▲274.17 ▲0.0596.84 ▼15.2240.61 ▼6.79
Add New WPT Tab post /wp-admin/post-new.php?post_type=wpttab_post2,3123.4094.5052.84
All Tab posts /wp-admin/edit.php?post_type=wpttab_post1,1001.9630.7331.57

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× 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/wp-taxonomy-tab/init.php:31

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
8 plugin tags: tab, responsive tab, taxonomy tab, wp tab, category tab...

wp-taxonomy-tab/init.php 85% from 13 tests

This is the main PHP file of "Wp Taxonomy Tab" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-taxonomy-tab.php" instead of "init.php")

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
There were no executable files found in this plugin565 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP21734307
CSS204222
JavaScript22036

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png62.91KB20.23KB▼ 67.85%
screenshot-1.png54.21KB16.60KB▼ 69.38%
screenshot-2.png24.68KB9.41KB▼ 61.89%