10% taketin-to-wp-membership

Code Review | TAKETIN To WP Membership

WordPress plugin TAKETIN To WP Membership scored 10% from 54 tests.

About plugin

  • Plugin page: taketin-to-wp-mem...
  • Plugin version: 2.7.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 6.3.1
  • First release: May 25, 2017
  • Latest release: Jul 24, 2023
  • Number of updates: 96
  • Update frequency: every 23.5 days
  • Top authors: taketin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 7,551 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/taketin-to-wp-membership/taketin-to-wp-membership.php+17
    date_default_timezone_set(): Timezone ID '' is invalid

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.25ms] Passed 4 tests

A check of server-side resources used by TAKETIN To WP Membership
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.84 ▼35.40
Dashboard /wp-admin2.05 ▼1.265.24 ▼44.26
Posts /wp-admin/edit.php2.05 ▼1.315.65 ▼39.20
Add New Post /wp-admin/post-new.php2.05 ▼3.845.20 ▼94.13
Media Library /wp-admin/upload.php2.05 ▼1.185.72 ▼26.81
設定 /wp-admin/admin.php?page=taketin_mp_membership_settings2.054.98
会員レベル /wp-admin/admin.php?page=taketin_mp_membership_levels2.056.62
会員 /wp-admin/admin.php?page=taketin_mp_membership2.055.00
限定コンテンツ /wp-admin/admin.php?page=taketin_mp_membership_categroy2.055.63

Server storage [IO: ▲0.38MB] [DB: ▲0.08MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 46 new files
Database: 4 new tables, 8 new options
New tables
wp_tmp_memberships
wp_tmp_members
wp_tmp_memberships_categories
wp_tmp_memberships_tickets
New WordPress options
tmp-db-version
theysaidso_admin_options
widget_recent-comments
tmp-settings
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for TAKETIN To WP Membership
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.58 ▼1.171.65 ▲0.0242.47 ▼0.58
Dashboard /wp-admin2,234 ▲494.86 ▼1.05106.72 ▲3.0048.00 ▲4.93
Posts /wp-admin/edit.php2,120 ▲311.99 ▼0.0440.65 ▲6.1343.78 ▲8.76
Add New Post /wp-admin/post-new.php1,539 ▼318.13 ▼0.18594.56 ▼13.2362.32 ▲12.08
Media Library /wp-admin/upload.php1,419 ▲344.21 ▼0.0795.48 ▲0.5047.78 ▲4.42
設定 /wp-admin/admin.php?page=taketin_mp_membership_settings1,2432.9343.34116.94
会員レベル /wp-admin/admin.php?page=taketin_mp_membership_levels1,2273.0448.9560.05
会員 /wp-admin/admin.php?page=taketin_mp_membership1,2272.9040.6862.98
限定コンテンツ /wp-admin/admin.php?page=taketin_mp_membership_categroy1,2243.0342.3459.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/taketin-to-wp-membership/taketin-to-wp-membership.php+17
    date_default_timezone_set(): Timezone ID '' is invalid
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=taketin_mp_membership_categroy
    • > Notice in wp-content/plugins/taketin-to-wp-membership/taketin-to-wp-membership.php+17
    date_default_timezone_set(): Timezone ID '' is invalid

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/taketin-to-wp-membership/taketin-to-wp-membership.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/taketin-to-wp-membership/classes/taketin-mp-membership-levels.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/taketin-to-wp-membership/classes/taketin-mp-category-list.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/taketin-to-wp-membership/classes/taketin-mp-category-list.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/taketin-to-wp-membership/classes/taketin-mp-membership-levels.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/taketin-to-wp-membership/classes/taketin-mp-membership-levels.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/taketin-to-wp-membership/classes/taketin-mp-category-list.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/taketin-to-wp-membership/classes/taketin-mp-members.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/taketin-to-wp-membership/classes/taketin-mp-members.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/taketin-to-wp-membership/classes/taketin-mp-members.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

taketin-to-wp-membership/taketin-to-wp-membership.php Passed 13 tests

The entry point to "TAKETIN To WP Membership" version 2.7.5 is a PHP file that has certain tags in its header comment area
113 characters long description:
TAKETIN Marketing Platformと連携したメンバーサイトをWordpressで作成するプラグインです。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin6,646 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP357067495,028
PO File24856531,116
JavaScript433109418
CSS23084

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity35.24
▷ Minimum class complexity2.00
▷ Maximum class complexity198.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes29.52%
▷ Concrete classes1990.48%
▷ Final classes00.00%
Methods271
▷ Static methods3412.55%
▷ Public methods21378.60%
▷ Protected methods3211.81%
▷ Private methods269.59%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants1995.00%
▷ Class constants15.00%
▷ Public constants1100.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
There are no PNG files in this plugin