79% edd-tab-manager

Code Review | EDD Tab Manager

WordPress plugin EDD Tab Manager scored79%from 54 tests.

About plugin

  • Plugin page: edd-tab-manager
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2017
  • Latest release: Apr 17, 2022
  • Number of updates: 10
  • Update frequency: every 160.6 days
  • Top authors: ibenic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,228 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.60MB] [CPU: ▲17.02ms] Passed 4 tests

Analyzing server-side resources used by EDD Tab Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /8.49 ▲5.0364.38 ▲19.98
Dashboard /wp-admin8.51 ▲5.1679.88 ▲7.62
Posts /wp-admin/edit.php8.51 ▲5.1578.36 ▲26.52
Add New Post /wp-admin/post-new.php8.95 ▲3.06122.27 ▲13.97
Media Library /wp-admin/upload.php8.51 ▲5.2871.64 ▲33.73
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.5160.48

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 208 new files
Database: no new tables, 10 new options
New WordPress options
fs_gdpr
widget_recent-posts
fs_debug_mode
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
fs_accounts
widget_theysaidso_widget
fs_active_plugins
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for EDD Tab Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8914.72 ▲0.431.89 ▲0.0332.62 ▼12.33
Dashboard /wp-admin2,231 ▲545.65 ▲0.0595.65 ▼4.6648.11 ▲5.56
Posts /wp-admin/edit.php2,140 ▲401.98 ▲0.0141.69 ▲6.3540.72 ▲3.56
Add New Post /wp-admin/post-new.php1,548 ▲2220.80 ▼2.83642.47 ▼63.7153.61 ▼1.98
Media Library /wp-admin/upload.php1,439 ▲394.19 ▲0.01102.16 ▼8.6550.73 ▲2.77
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0761.6823.6727.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/edd-tab-manager/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_recent-comments
    • fs_active_plugins
    • theysaidso_admin_options
    • fs_gdpr
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • fs_accounts
    • fs_debug_mode

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: tabs, ecommerce, easy-digital-downloads

edd-tab-manager/edd-tab-manager.php 85% from 13 tests

Analyzing the main PHP file in "EDD Tab Manager" version 1.3.1
Please make the necessary changes and fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin38,816 lines of code in 163 files:
LanguageFilesBlank linesComment linesLines of code
PHP1167,38116,23731,358
PO File52,1402,1634,830
Sass20329762,091
JavaScript53861218
Markdown1680214
CSS158065
JSON10040

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity80.45
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes51
▷ Abstract classes23.92%
▷ Concrete classes4996.08%
▷ Final classes12.04%
Methods1,153
▷ Static methods17615.26%
▷ Public methods81370.51%
▷ Protected methods151.30%
▷ Private methods32528.19%
Functions94
▷ Named functions94100.00%
▷ Anonymous functions00.00%
Constants125
▷ Global constants10080.00%
▷ Class constants2520.00%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%