89% tabbed-account-area-for-easy-digital-downloads

Code Review | Tabbed Account Area for Easy Digital Downloads

WordPress plugin Tabbed Account Area for Easy Digital Downloads scored 89% from 54 tests.

About plugin

  • Plugin page: tabbed-account-ar...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2016
  • Latest release: Mar 30, 2023
  • Number of updates: 25
  • Update frequency: every 93.3 days
  • Top authors: scott.deluzio (88%)ampmode (16%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active / 5,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Tabbed Account Area for Easy Digital Downloads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0339.43 ▼4.45
Dashboard /wp-admin3.33 ▲0.0345.61 ▼6.26
Posts /wp-admin/edit.php3.38 ▲0.0346.89 ▼2.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.73 ▼9.67
Media Library /wp-admin/upload.php3.26 ▲0.0336.23 ▲4.05

Server storage [IO: ▲0.03MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tabbed Account Area for Easy Digital Downloads
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.62 ▼0.741.80 ▼0.3540.48 ▼6.21
Dashboard /wp-admin2,210 ▲225.81 ▲0.9398.33 ▼16.1538.97 ▼8.70
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0239.15 ▲5.1034.74 ▼1.75
Add New Post /wp-admin/post-new.php1,540 ▲1222.78 ▲4.44607.41 ▼7.8556.19 ▼2.25
Media Library /wp-admin/upload.php1,398 ▲74.25 ▲0.0298.69 ▼0.1044.16 ▲1.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive 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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: easy digital downloads, affiliate wp

tabbed-account-area-for-easy-digital-downloads/tabbed-account-area.php 85% from 13 tests

The principal PHP file in "Tabbed Account Area for Easy Digital Downloads" v. 1.2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("tabbed-account-area-for-easy-digital-downloads.php" instead of "tabbed-account-area.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
No dangerous file extensions were detected321 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS362158
PHP53570153
JavaScript10110

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin