89% wp-tab

Code Review | WP TAB

WordPress plugin WP TAB scored89%from 54 tests.

About plugin

  • Plugin page: wp-tab
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.0
  • WordPress version: 6.3.1
  • First release: Dec 20, 2015
  • Latest release: Dec 23, 2015
  • Number of updates: 27
  • Update frequency: every 16.9 days
  • Top authors: kingrayhan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,957 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.18MB] [CPU: ▼5.14ms] Passed 4 tests

This is a short check of server-side resources used by WP TAB
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2851.22 ▲10.82
Dashboard /wp-admin3.66 ▲0.3652.58 ▲6.45
Posts /wp-admin/edit.php3.71 ▲0.3658.43 ▲6.24
Add New Post /wp-admin/post-new.php5.71 ▼0.1774.01 ▼33.50
Media Library /wp-admin/upload.php3.47 ▲0.2435.45 ▲0.27

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP TAB
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,112 ▲36616.05 ▲1.675.89 ▲4.1544.18 ▲4.36
Dashboard /wp-admin2,427 ▲2397.01 ▲2.12126.53 ▲19.9639.86 ▼3.74
Posts /wp-admin/edit.php2,334 ▲2423.90 ▲1.9059.25 ▲13.6933.55 ▼4.92
Add New Post /wp-admin/post-new.php1,605 ▲7223.72 ▲0.44639.93 ▼22.9134.16 ▼26.12
Media Library /wp-admin/upload.php1,475 ▲874.77 ▲0.6682.64 ▼24.4540.73 ▼2.52

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-tab/plugin.php 92% from 13 tests

"WP TAB" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-tab.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected27,423 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,928
JavaScript131,2661,0315,365
CSS9141644,015
Sass528701,834
PHP264765811,385
SVG2001,295
PO File6261285601

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity10.93
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes214.29%
▷ Concrete classes1285.71%
▷ Final classes00.00%
Methods47
▷ Static methods12.13%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/menu.png3.50KB0.10KB▼ 97.18%
assets/admin/assets/images/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
assets/admin/assets/images/checkerboard.png2.29KB2.54KB0.00%
assets/images/arrow.png2.09KB0.99KB▼ 52.61%
assets/admin/assets/images/chosen-sprite.png0.63KB0.88KB0.00%